@@ -63,7 +63,7 @@ public class ${table.controllerName} {
6363 */
6464 @PostMapping("/add")
6565 @ApiOperation(value = "添加${entity}对象",notes = "添加$!{table.comment}",response = ApiResult.class)
66- public ApiResult<Boolean> addSysUser (@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
66+ public ApiResult<Boolean> add${entity} (@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
6767 boolean flag = ${cfg.serviceObjectName}.save(${cfg.entityObjectName});
6868 return ApiResult.result(flag);
6969 }
@@ -73,7 +73,7 @@ public class ${table.controllerName} {
7373 */
7474 @PostMapping("/update")
7575 @ApiOperation(value = "修改${entity}对象",notes = "修改$!{table.comment}",response = ApiResult.class)
76- public ApiResult<Boolean> updateSysUser (@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
76+ public ApiResult<Boolean> update${entity} (@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
7777 boolean flag = ${cfg.serviceObjectName}.updateById(${cfg.entityObjectName});
7878 return ApiResult.result(flag);
7979 }
@@ -83,7 +83,7 @@ public class ${table.controllerName} {
8383 */
8484 @PostMapping("/delete")
8585 @ApiOperation(value = "删除${entity}对象",notes = "删除$!{table.comment}",response = ApiResult.class)
86- public ApiResult<Boolean> deleteSysUser (@Valid @RequestBody IdParam idParam) throws Exception{
86+ public ApiResult<Boolean> delete${entity} (@Valid @RequestBody IdParam idParam) throws Exception{
8787 boolean flag = ${cfg.serviceObjectName}.removeById(idParam.getId());
8888 return ApiResult.result(flag);
8989 }
@@ -93,7 +93,7 @@ public class ${table.controllerName} {
9393 */
9494 @PostMapping("/info")
9595 @ApiOperation(value = "获取${entity}对象详情",notes = "查看$!{table.comment}",response = ${entity}QueryVo.class)
96- public ApiResult<${entity}QueryVo> getSysUser (@Valid @RequestBody IdParam idParam) throws Exception{
96+ public ApiResult<${entity}QueryVo> get${entity} (@Valid @RequestBody IdParam idParam) throws Exception{
9797 ${entity}QueryVo ${cfg.entityObjectName}QueryVo = ${cfg.serviceObjectName}.get${entity}ById(idParam.getId());
9898 return ApiResult.ok(${cfg.entityObjectName}QueryVo);
9999 }
0 commit comments