1538940682@qq.com 3 лет назад
Родитель
Сommit
ceb4209263
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/main/resources/template/Controller.java.vm

+ 1 - 2
src/main/resources/template/Controller.java.vm

@@ -9,7 +9,6 @@ import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.PutMapping;
@@ -47,7 +46,7 @@ public class ${className}Controller extends BaseController {
     @GetMapping("page")
     @ApiOperation("分页")
     @RequiresPermissions("${moduleName}:${pathName}:page")
-    public ApiResponse<Pagination<${className}VO>> page(@RequestParam ${className}PagePO request) {
+    public ApiResponse<Pagination<${className}VO>> page(${className}PagePO request) {
 
         Pagination<${className}VO> result = ${classname}Service.page(request);
         return R.result(result);