Commit f1cb4d43 authored by 李丛阳's avatar 李丛阳

完善 ftl

parent 4b382b86
...@@ -54,7 +54,7 @@ public class ${table.entityName}Controller extends PaginationController<${table. ...@@ -54,7 +54,7 @@ public class ${table.entityName}Controller extends PaginationController<${table.
@ApiOperation(value="逻辑删除${table.tableRemark!}", notes="逻辑删除${table.tableRemark!}") @ApiOperation(value="逻辑删除${table.tableRemark!}", notes="逻辑删除${table.tableRemark!}")
@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "id", required = false, dataType = "varchar")}) @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "id", required = false, dataType = "varchar")})
@DeleteMapping("/{id:\\d+}") @DeleteMapping("/delete/{id:\\w+}")
public Result delete(@PathVariable String id) { public Result delete(@PathVariable String id) {
${table.entityName} ${table.entityName?uncap_first} = new ${table.entityName}(); ${table.entityName} ${table.entityName?uncap_first} = new ${table.entityName}();
${table.entityName?uncap_first}.setBusinessId(id); ${table.entityName?uncap_first}.setBusinessId(id);
...@@ -68,7 +68,7 @@ public class ${table.entityName}Controller extends PaginationController<${table. ...@@ -68,7 +68,7 @@ public class ${table.entityName}Controller extends PaginationController<${table.
@ApiOperation(value="修改${table.tableRemark!}", notes="修改${table.tableRemark!}") @ApiOperation(value="修改${table.tableRemark!}", notes="修改${table.tableRemark!}")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")}) @ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")})
@PutMapping("/{id:\\d+}") @PutMapping("/update/{id:\\w+}")
public Result update(@Valid ${table.entityName} ${table.entityName?uncap_first}, BindingResult bindingResult) { public Result update(@Valid ${table.entityName} ${table.entityName?uncap_first}, BindingResult bindingResult) {
if (bindingResult.hasErrors()) { if (bindingResult.hasErrors()) {
throw new ServiceException(ResultServiceEnums.PARAMETER_ERROR.getCode(), throw new ServiceException(ResultServiceEnums.PARAMETER_ERROR.getCode(),
...@@ -83,7 +83,7 @@ public class ${table.entityName}Controller extends PaginationController<${table. ...@@ -83,7 +83,7 @@ public class ${table.entityName}Controller extends PaginationController<${table.
} }
@ApiOperation(value="查看单 ${table.tableRemark!}", notes="查看单 ${table.tableRemark!}") @ApiOperation(value="查看单 ${table.tableRemark!}", notes="查看单 ${table.tableRemark!}")
@GetMapping("/{id:\\d+}") @GetMapping("/detail/{id:\\w+}")
public Result detail(@PathVariable String id) { public Result detail(@PathVariable String id) {
return Result.builder(new PersistModel(1), return Result.builder(new PersistModel(1),
MessageConstant.MESSAGE_ALERT_SUCCESS, MessageConstant.MESSAGE_ALERT_SUCCESS,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment