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/NewsAdminController.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsAdminController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsAdminController.java
index e25419f..1fd419a 100644
--- a/ycl-platform/src/main/java/com/ycl/controller/NewsAdminController.java
+++ b/ycl-platform/src/main/java/com/ycl/controller/NewsAdminController.java
@@ -50,6 +50,7 @@
         } else {
             if (admin.getPassword().equals(MD5Util.md5Encrypt32Lower(loginParam.getPassword()))) {
                 JwtTokenUtil jwtTokenUtil = new JwtTokenUtil();
+
                 return CommonResult.success(jwtTokenUtil.generateToken(admin.getId(), admin.getUsername()));
             } else {
                 return CommonResult.failed("瀵嗙爜閿欒");
@@ -64,6 +65,7 @@
      * @return 鎵�鏈夋暟鎹�
      */
     @GetMapping
+    @ApiOperation(value = "鏌ヨ鎵�鏈夋暟鎹�")
     public R selectAll(Page<NewsAdmin> page, NewsAdmin newsAdmin) {
         return success(this.newsAdminService.page(page, new QueryWrapper<>(newsAdmin)));
     }
@@ -75,6 +77,7 @@
      * @return 鍗曟潯鏁版嵁
      */
     @GetMapping("{id}")
+    @ApiOperation(value = "鎸塱d鏌ヨ鏁版嵁")
     public R selectOne(@PathVariable Serializable id) {
         return success(this.newsAdminService.getById(id));
     }
@@ -86,6 +89,7 @@
      * @return 鏂板缁撴灉
      */
     @PostMapping
+    @ApiOperation(value = "鏂板鏁版嵁")
     public R insert(@RequestBody NewsAdmin newsAdmin) {
         return success(this.newsAdminService.save(newsAdmin));
     }
@@ -97,6 +101,7 @@
      * @return 淇敼缁撴灉
      */
     @PutMapping
+    @ApiOperation(value = "淇敼鏁版嵁")
     public R update(@RequestBody NewsAdmin newsAdmin) {
         return success(this.newsAdminService.updateById(newsAdmin));
     }
@@ -108,6 +113,7 @@
      * @return 鍒犻櫎缁撴灉
      */
     @DeleteMapping
+    @ApiOperation(value = "鍒犻櫎鏁版嵁")
     public R delete(@RequestParam("idList") List<Long> idList) {
         return success(this.newsAdminService.removeByIds(idList));
     }

--
Gitblit v1.8.0