|
|
|
@ -21,6 +21,9 @@ public class RetKit {
|
|
|
|
|
public static Map<String, Object> renderSuccess(String msg, List<com.jfinal.plugin.activerecord.Record> list) {
|
|
|
|
|
return renderSuccess(msg, list, null, 0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
public static Map<String, Object> renderSuccess(Page<com.jfinal.plugin.activerecord.Record> page) {
|
|
|
|
|
return renderSuccess(null, page.getList(), "list", page.getPageNumber(), page.getPageSize(), page.getTotalRow());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Map<String, Object> renderSuccess(String msg, Page<com.jfinal.plugin.activerecord.Record> page, String dataName) {
|
|
|
|
|
return renderSuccess(msg, page.getList(), dataName, page.getPageNumber(), page.getPageSize(), page.getTotalRow());
|
|
|
|
|