修改小程序接口

This commit is contained in:
liuwu 2023-08-30 15:36:37 +08:00
parent c3bb25220d
commit 677eb54be6
1 changed files with 4 additions and 4 deletions

View File

@ -84,9 +84,9 @@ public class WechatController extends BaseController {
// @RequiresPermissions("base:dept:list") // @RequiresPermissions("base:dept:list")
@PostMapping("/deptList") @PostMapping("/deptList")
@ResponseBody @ResponseBody
public List<SysDept> deptList(@RequestBody SysDept dept) public AjaxResult deptList(@RequestBody SysDept dept)
{ {
return deptService.selectDeptList(dept); return AjaxResult.success(deptService.selectDeptList(dept));
} }
/** /**
@ -97,9 +97,9 @@ public class WechatController extends BaseController {
// @RequiresPermissions("base:personnel:list") // @RequiresPermissions("base:personnel:list")
@PostMapping("/personList") @PostMapping("/personList")
@ResponseBody @ResponseBody
public List<TAmentPersonnel> personList(@RequestBody TAmentPersonnel personnel) public AjaxResult personList(@RequestBody TAmentPersonnel personnel)
{ {
return personnelService.selectTAmentPersonnelList(personnel); return AjaxResult.success(personnelService.selectTAmentPersonnelList(personnel));
} }
// @RequiresPermissions("base:affairs:list") // @RequiresPermissions("base:affairs:list")