From 0b51316b7c7af4bf95f413a51ae6c99129c3c8fc Mon Sep 17 00:00:00 2001 From: PKAQ Date: Thu, 1 Sep 2022 10:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E8=A7=A3=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/nerv/core/mvc/ctrl/mybatis/ActiveBaseCtrl.java | 8 ++++---- .../io/nerv/core/mvc/ctrl/mybatis/StdBaseCtrl.java | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/eva-core/eva-core-data-mybatis/src/main/java/io/nerv/core/mvc/ctrl/mybatis/ActiveBaseCtrl.java b/eva-core/eva-core-data-mybatis/src/main/java/io/nerv/core/mvc/ctrl/mybatis/ActiveBaseCtrl.java index dcf9c6ae..6fe7e903 100644 --- a/eva-core/eva-core-data-mybatis/src/main/java/io/nerv/core/mvc/ctrl/mybatis/ActiveBaseCtrl.java +++ b/eva-core/eva-core-data-mybatis/src/main/java/io/nerv/core/mvc/ctrl/mybatis/ActiveBaseCtrl.java @@ -27,7 +27,7 @@ public abstract class ActiveBaseCtrl ids){ @@ -39,7 +39,7 @@ public Response del(@Parameter(name = "ids", description = "[记录ID]") } @PostMapping("edit") - @Operation(description = "新增/编辑记录") + @Operation(summary = "新增记录",description = "新增/编辑记录") public Response save(@Parameter(name ="formdata", description = "模型对象") @RequestBody E entity){ this.service.merge(entity); @@ -47,14 +47,14 @@ public Response save(@Parameter(name ="formdata", description = "模型对象") } @GetMapping("list") - @Operation(description = "列表查询") + @Operation(summary = "分页查询",description = "列表查询") public Response list(@Parameter(name ="condition", description = "模型对象") E entity, Integer pageNo, Integer pageSize){ return this.success(this.service.listPage(entity, pageNo, pageSize)); } @GetMapping("/get/{id}") - @Operation(description = "根据ID获得记录信息") + @Operation(summary = "根据ID查询", description = "根据ID获得记录信息") public Response get(@Parameter(name = "id", description = "记录ID") @PathVariable("id") String id){ return this.success(this.service.getById(id)); diff --git a/eva-core/eva-core-data-mybatis/src/main/java/io/nerv/core/mvc/ctrl/mybatis/StdBaseCtrl.java b/eva-core/eva-core-data-mybatis/src/main/java/io/nerv/core/mvc/ctrl/mybatis/StdBaseCtrl.java index cae3dd4d..06119398 100644 --- a/eva-core/eva-core-data-mybatis/src/main/java/io/nerv/core/mvc/ctrl/mybatis/StdBaseCtrl.java +++ b/eva-core/eva-core-data-mybatis/src/main/java/io/nerv/core/mvc/ctrl/mybatis/StdBaseCtrl.java @@ -28,7 +28,7 @@ public abstract class StdBaseCtrl ids){ @@ -41,7 +41,7 @@ public Response del(@Parameter(name = "ids", description = "[记录ID]") } @PostMapping("/edit") - @Operation(description = "新增/编辑记录") + @Operation(summary = "新增记录",description = "新增/编辑记录") @NoRepeatSubmit public Response save(@Parameter(name ="formdata", description = "模型对象") @RequestBody E entity){ @@ -50,7 +50,7 @@ public Response save(@Parameter(name ="formdata", description = "模型对象") } @GetMapping("/list") - @Operation(description = "列表查询") + @Operation(summary = "分页查询",description = "列表查询") @NoRepeatSubmit public Response list(@Parameter(name ="condition", description = "模型对象") E entity, Integer pageNo, Integer pageSize){ @@ -58,7 +58,7 @@ public Response list(@Parameter(name ="condition", description = "模型对象") } @GetMapping("/listAll") - @Operation(description = "列表查询 无分页") + @Operation(summary = "查询全部",description = "列表查询 无分页") @NoRepeatSubmit public Response listAll(@Parameter(name ="condition", description = "模型对象") E entity){ @@ -66,7 +66,7 @@ public Response listAll(@Parameter(name ="condition", description = "模型对 } @GetMapping("/get/{id}") - @Operation(description = "根据ID获得记录信息") + @Operation(summary = "根据ID查询", description = "根据ID获得记录信息") @NoRepeatSubmit public Response get(@Parameter(name = "id", description = "记录ID") @PathVariable("id") String id){