Commit af142d38 authored by 黎博's avatar 黎博

modify

parent 39f52a61
...@@ -230,7 +230,7 @@ public class MsgController { ...@@ -230,7 +230,7 @@ public class MsgController {
* @return * @return
*/ */
@GetMapping("/template/list") @GetMapping("/template/list")
public JsonResult getMsgTemplateList(String namespace, Integer templateType, Integer pageNum, Integer pageSize) { public Result getMsgTemplateList(String namespace, Integer templateType, Integer pageNum, Integer pageSize) {
SwitchDataSource.dataSourceSwitch(namespace, "msg"); SwitchDataSource.dataSourceSwitch(namespace, "msg");
Page<MsgTemplate> page = new Page<>(pageNum, pageSize); Page<MsgTemplate> page = new Page<>(pageNum, pageSize);
QueryWrapper<MsgTemplate> msgTemplateQueryWrapper = new QueryWrapper<>(); QueryWrapper<MsgTemplate> msgTemplateQueryWrapper = new QueryWrapper<>();
...@@ -239,6 +239,6 @@ public class MsgController { ...@@ -239,6 +239,6 @@ public class MsgController {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("total", msgTemplateIPage.getTotal()); map.put("total", msgTemplateIPage.getTotal());
map.put("list", msgTemplateIPage.getRecords()); map.put("list", msgTemplateIPage.getRecords());
return JsonResult.success(map); return Result.buildSuccessResult(map);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment