From d014a10a4e597718375c0964f0394babb3eae7d7 Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期日, 13 三月 2022 10:02:44 +0800
Subject: [PATCH] fix(bug修复): 增加了定时计算年龄的定时任务

---
 febs-server/febs-server-generator/src/main/resources/generator/templates/controller.ftl |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/febs-server/febs-server-generator/src/main/resources/generator/templates/controller.ftl b/febs-server/febs-server-generator/src/main/resources/generator/templates/controller.ftl
index 9273b1f..2d9b379 100644
--- a/febs-server/febs-server-generator/src/main/resources/generator/templates/controller.ftl
+++ b/febs-server/febs-server-generator/src/main/resources/generator/templates/controller.ftl
@@ -25,6 +25,7 @@
 * @date ${date}
 * @since JDK1.8
 */
+@Api(tags = "${tableComment}管理接口")
 @Slf4j
 @Validated
 @RestController
@@ -34,19 +35,23 @@
 
 private final I${className}Service ${className?uncap_first}Service;
 
+@ApiOperation(value = "${tableComment}无翻页列表")
 @GetMapping
 @PreAuthorize("hasAuthority('${className?uncap_first}:list')")
 public FebsResponse getAll${className}s(${className} ${className?uncap_first}) {
 return new FebsResponse().data(${className?uncap_first}Service.find${className}s(${className?uncap_first}));
 }
 
+@ApiOperation(value = "${tableComment}翻页列表")
 @GetMapping("list")
 @PreAuthorize("hasAuthority('${className?uncap_first}:list')")
 public FebsResponse ${className?uncap_first}List(QueryRequest request, ${className} ${className?uncap_first}) {
-Map<String, Object> dataTable = FebsUtil.getDataTable(this.${className?uncap_first}Service.find${className}s(request, ${className?uncap_first}));
+Map
+<String, Object> dataTable = FebsUtil.getDataTable(this.${className?uncap_first}Service.find${className}s(request, ${className?uncap_first}));
 return new FebsResponse().data(dataTable);
 }
 
+@ApiOperation(value = "${tableComment}增加")
 @PostMapping
 @PreAuthorize("hasAuthority('${className?uncap_first}:add')")
 public void add${className}(@Valid ${className} ${className?uncap_first}) throws FebsException {
@@ -59,6 +64,7 @@
 }
 }
 
+@ApiOperation(value = "${tableComment}物理删除")
 @DeleteMapping
 @PreAuthorize("hasAuthority('${className?uncap_first}:delete')")
 public void delete${className}(${className} ${className?uncap_first}) throws FebsException {
@@ -71,6 +77,7 @@
 }
 }
 
+@ApiOperation(value = "${tableComment}逻辑删除")
 @DeleteMapping("{ids}")
 @PreAuthorize("hasAuthority('${className?uncap_first}:delete')")
 public void logicDelete${className}(@PathVariable("ids") String ids) throws FebsException {
@@ -83,6 +90,7 @@
 }
 }
 
+@ApiOperation(value = "${tableComment}修改")
 @PutMapping
 @PreAuthorize("hasAuthority('${className?uncap_first}:update')")
 public void update${className}(${className} ${className?uncap_first}) throws FebsException {

--
Gitblit v1.8.0