From 17f0c20242c6ee3d35b9ee8f677d747ed012423c Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 02 九月 2022 16:30:20 +0800 Subject: [PATCH] remove 移除maven docker插件 过于老旧功能缺陷大 使用idea自带的docker插件替代 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java index 559e6ca..6569877 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java @@ -11,9 +11,6 @@ import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.system.domain.SysPost; import com.ruoyi.system.service.ISysPostService; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.Parameter; -import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -27,7 +24,6 @@ * @author Lion Li */ @Validated -@Tag(name ="宀椾綅淇℃伅鎺у埗鍣�", description = "宀椾綅淇℃伅绠$悊") @RequiredArgsConstructor @RestController @RequestMapping("/system/post") @@ -38,14 +34,15 @@ /** * 鑾峰彇宀椾綅鍒楄〃 */ - @Operation(summary = "鑾峰彇宀椾綅鍒楄〃") @SaCheckPermission("system:post:list") @GetMapping("/list") public TableDataInfo<SysPost> list(SysPost post, PageQuery pageQuery) { return postService.selectPagePostList(post, pageQuery); } - @Operation(summary = "瀵煎嚭宀椾綅鍒楄〃") + /** + * 瀵煎嚭宀椾綅鍒楄〃 + */ @Log(title = "宀椾綅绠$悊", businessType = BusinessType.EXPORT) @SaCheckPermission("system:post:export") @PostMapping("/export") @@ -56,18 +53,18 @@ /** * 鏍规嵁宀椾綅缂栧彿鑾峰彇璇︾粏淇℃伅 + * + * @param postId 宀椾綅ID */ - @Operation(summary = "鏍规嵁宀椾綅缂栧彿鑾峰彇璇︾粏淇℃伅") @SaCheckPermission("system:post:query") @GetMapping(value = "/{postId}") - public R<SysPost> getInfo(@Parameter(name = "宀椾綅ID") @PathVariable Long postId) { + public R<SysPost> getInfo(@PathVariable Long postId) { return R.ok(postService.selectPostById(postId)); } /** * 鏂板宀椾綅 */ - @Operation(summary = "鏂板宀椾綅") @SaCheckPermission("system:post:add") @Log(title = "宀椾綅绠$悊", businessType = BusinessType.INSERT) @PostMapping @@ -83,7 +80,6 @@ /** * 淇敼宀椾綅 */ - @Operation(summary = "淇敼宀椾綅") @SaCheckPermission("system:post:edit") @Log(title = "宀椾綅绠$悊", businessType = BusinessType.UPDATE) @PutMapping @@ -98,19 +94,19 @@ /** * 鍒犻櫎宀椾綅 + * + * @param postIds 宀椾綅ID涓� */ - @Operation(summary = "鍒犻櫎宀椾綅") @SaCheckPermission("system:post:remove") @Log(title = "宀椾綅绠$悊", businessType = BusinessType.DELETE) @DeleteMapping("/{postIds}") - public R<Void> remove(@Parameter(name = "宀椾綅ID涓�") @PathVariable Long[] postIds) { + public R<Void> remove(@PathVariable Long[] postIds) { return toAjax(postService.deletePostByIds(postIds)); } /** * 鑾峰彇宀椾綅閫夋嫨妗嗗垪琛� */ - @Operation(summary = "鑾峰彇宀椾綅閫夋嫨妗嗗垪琛�") @GetMapping("/optionselect") public R<List<SysPost>> optionselect() { List<SysPost> posts = postService.selectPostAll(); -- Gitblit v1.9.3