|
@@ -46,7 +46,6 @@ public class ${className}Controller extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/page")
|
|
@GetMapping("/page")
|
|
|
@ApiOperation("分页")
|
|
@ApiOperation("分页")
|
|
|
- //@RequiresPermissions("${moduleName}:${pathName}:page")
|
|
|
|
|
public ApiResponse<Pagination<${className}VO>> page(${className}PagePO request) {
|
|
public ApiResponse<Pagination<${className}VO>> page(${className}PagePO request) {
|
|
|
|
|
|
|
|
Pagination<${className}VO> result = ${classname}Service.page(request);
|
|
Pagination<${className}VO> result = ${classname}Service.page(request);
|
|
@@ -58,7 +57,7 @@ public class ${className}Controller extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/getById/{id}")
|
|
@GetMapping("/getById/{id}")
|
|
|
@ApiOperation("信息")
|
|
@ApiOperation("信息")
|
|
|
-// @RequiresPermissions("${moduleName}:${pathName}:info")
|
|
|
|
|
|
|
+
|
|
|
public ApiResponse<${className}VO> getById(@PathVariable("id") Long id) {
|
|
public ApiResponse<${className}VO> getById(@PathVariable("id") Long id) {
|
|
|
|
|
|
|
|
${className}VO result = ${classname}Service.getById(id);
|
|
${className}VO result = ${classname}Service.getById(id);
|