Commit d663fd5a697cd7b1a7f7ee78c8c6e15ea05f57e1
1 parent
44c4aa15
swagger接口返回值,显示的是object问题
Showing
1 changed file
with
2 additions
and
2 deletions
jeecg-boot/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/test/controller/JeecgDemoController.java
@@ -59,7 +59,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe | @@ -59,7 +59,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe | ||
59 | @ApiOperation(value = "获取Demo数据列表", notes = "获取所有Demo数据列表") | 59 | @ApiOperation(value = "获取Demo数据列表", notes = "获取所有Demo数据列表") |
60 | @GetMapping(value = "/list") | 60 | @GetMapping(value = "/list") |
61 | @PermissionData(pageComponent = "jeecg/JeecgDemoList") | 61 | @PermissionData(pageComponent = "jeecg/JeecgDemoList") |
62 | - public Result<?> list(JeecgDemo jeecgDemo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, | 62 | + public Result<IPage<JeecgDemo>> list(JeecgDemo jeecgDemo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
63 | HttpServletRequest req) { | 63 | HttpServletRequest req) { |
64 | QueryWrapper<JeecgDemo> queryWrapper = QueryGenerator.initQueryWrapper(jeecgDemo, req.getParameterMap()); | 64 | QueryWrapper<JeecgDemo> queryWrapper = QueryGenerator.initQueryWrapper(jeecgDemo, req.getParameterMap()); |
65 | queryWrapper.orderByDesc("create_time"); | 65 | queryWrapper.orderByDesc("create_time"); |
@@ -136,7 +136,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe | @@ -136,7 +136,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe | ||
136 | */ | 136 | */ |
137 | @GetMapping(value = "/queryById") | 137 | @GetMapping(value = "/queryById") |
138 | @ApiOperation(value = "通过ID查询DEMO", notes = "通过ID查询DEMO") | 138 | @ApiOperation(value = "通过ID查询DEMO", notes = "通过ID查询DEMO") |
139 | - public Result<?> queryById(@ApiParam(name = "id", value = "示例id", required = true) @RequestParam(name = "id", required = true) String id) { | 139 | + public Result<JeecgDemo> queryById(@ApiParam(name = "id", value = "示例id", required = true) @RequestParam(name = "id", required = true) String id) { |
140 | JeecgDemo jeecgDemo = jeecgDemoService.getById(id); | 140 | JeecgDemo jeecgDemo = jeecgDemoService.getById(id); |
141 | return Result.OK(jeecgDemo); | 141 | return Result.OK(jeecgDemo); |
142 | } | 142 | } |