From b1516fedd7deedb61641321158fce862f77b4b4d Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期二, 22 十一月 2022 11:51:53 +0800
Subject: [PATCH] 更新访问路径白名单,部分接口修改

---
 ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java
index 5ddc4f5..920ffe8 100644
--- a/ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java
+++ b/ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java
@@ -8,6 +8,8 @@
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.ycl.entity.NewsIp;
 import com.ycl.service.NewsIpService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
@@ -22,6 +24,7 @@
  */
 @RestController
 @RequestMapping("newsIp")
+@Api(tags = "ip绠$悊")
 public class NewsIpController extends ApiController {
     /**
      * 鏈嶅姟瀵硅薄
@@ -37,6 +40,7 @@
      * @return 鎵�鏈夋暟鎹�
      */
     @GetMapping
+    @ApiOperation("鏌ヨ鎵�鏈�")
     public R selectAll(Page<NewsIp> page, NewsIp newsIp) {
         return success(this.newsIpService.page(page, new QueryWrapper<>(newsIp)));
     }
@@ -48,6 +52,7 @@
      * @return 鍗曟潯鏁版嵁
      */
     @GetMapping("{id}")
+    @ApiOperation("鎸塱d鏌ヨ")
     public R selectOne(@PathVariable Serializable id) {
         return success(this.newsIpService.getById(id));
     }
@@ -59,6 +64,7 @@
      * @return 鏂板缁撴灉
      */
     @PostMapping
+    @ApiOperation("鏂板")
     public R insert(@RequestBody NewsIp newsIp) {
         return success(this.newsIpService.save(newsIp));
     }
@@ -70,6 +76,7 @@
      * @return 淇敼缁撴灉
      */
     @PutMapping
+    @ApiOperation("淇敼")
     public R update(@RequestBody NewsIp newsIp) {
         return success(this.newsIpService.updateById(newsIp));
     }
@@ -81,6 +88,7 @@
      * @return 鍒犻櫎缁撴灉
      */
     @DeleteMapping
+    @ApiOperation("鍒犻櫎")
     public R delete(@RequestParam("idList") List<Long> idList) {
         return success(this.newsIpService.removeByIds(idList));
     }

--
Gitblit v1.8.0