|
|
@ -48,7 +48,7 @@ public class ${modelNameUpperCamel}Controller { |
|
|
|
@PostMapping("/list") |
|
|
|
@PostMapping("/list") |
|
|
|
public Result list(Integer page, Integer size) { |
|
|
|
public Result list(Integer page, Integer size) { |
|
|
|
PageHelper.startPage(page, size); |
|
|
|
PageHelper.startPage(page, size); |
|
|
|
List<User> list = userService.findAll(); |
|
|
|
List<${modelNameUpperCamel}> list = ${modelNameLowerCamel}Service.findAll(); |
|
|
|
PageInfo pageInfo = new PageInfo(list); |
|
|
|
PageInfo pageInfo = new PageInfo(list); |
|
|
|
return ResultGenerator.genSuccessResult(pageInfo); |
|
|
|
return ResultGenerator.genSuccessResult(pageInfo); |
|
|
|
} |
|
|
|
} |
|
|
|