From 1ed62629c29a442a8dc84975e65d9866fb742294 Mon Sep 17 00:00:00 2001 From: Mele Date: Sat, 10 May 2025 19:25:15 +0000 Subject: [PATCH] =?UTF-8?q?update=20mybatis-flex-codegen/src/main/resource?= =?UTF-8?q?s/templates/enjoy/controller.tpl.=20=E8=AF=AD=E5=8F=A5=E4=B8=8D?= =?UTF-8?q?=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mele --- .../src/main/resources/templates/enjoy/controller.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mybatis-flex-codegen/src/main/resources/templates/enjoy/controller.tpl b/mybatis-flex-codegen/src/main/resources/templates/enjoy/controller.tpl index 3d259c0a..0bff4074 100644 --- a/mybatis-flex-codegen/src/main/resources/templates/enjoy/controller.tpl +++ b/mybatis-flex-codegen/src/main/resources/templates/enjoy/controller.tpl @@ -64,10 +64,10 @@ public class #(table.buildControllerClassName()) #if(controllerConfig.superClass private #(table.buildServiceClassName()) #(serviceVarName); /** - * 添加#(tableComment)。 + * 保存#(tableComment)。 * * @param #(entityVarName) #(tableComment) - * @return {@code true} 添加成功,{@code false} 添加失败 + * @return {@code true} 保存成功,{@code false} 保存失败 */ @PostMapping("save") #if(withSwagger && swaggerVersion.getName() == "FOX") @@ -88,10 +88,10 @@ public class #(table.buildControllerClassName()) #if(controllerConfig.superClass */ @DeleteMapping("remove/{id}") #if(withSwagger && swaggerVersion.getName() == "FOX") - @ApiOperation("根据主键#(tableComment)") + @ApiOperation("根据主键删除#(tableComment)") #end #if(withSwagger && swaggerVersion.getName() == "DOC") - @Operation(description="根据主键#(tableComment)") + @Operation(description="根据主键删除#(tableComment)") #end public boolean remove(@PathVariable #if(withSwagger && swaggerVersion.getName() == "FOX")@ApiParam("#(tableComment)主键") #end #if(withSwagger && swaggerVersion.getName() == "DOC")@Parameter(description="#(tableComment)主键") #end #(primaryKeyType) id) { return #(serviceVarName).removeById(id); @@ -131,7 +131,7 @@ public class #(table.buildControllerClassName()) #if(controllerConfig.superClass } /** - * 根据#(tableComment)主键获取详细信息。 + * 根据主键获取#(tableComment)。 * * @param id #(tableComment)主键 * @return #(tableComment)详情