From 2ddbd99aa5b2e396f96c6daba60fe1ac2573d9fb Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Sat, 18 May 2024 11:53:54 +0800 Subject: [PATCH] 新增RSS 订阅链接 --- snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/controller/BlogFriendshipLinkController.java | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/controller/BlogFriendshipLinkController.java b/snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/controller/BlogFriendshipLinkController.java index 09da8d5..0e4f0a9 100644 --- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/controller/BlogFriendshipLinkController.java +++ b/snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/controller/BlogFriendshipLinkController.java @@ -24,6 +24,11 @@ */ package vip.xiaonuo.modular.blogfriendshiplink.controller; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; import vip.xiaonuo.core.annotion.BusinessLog; import vip.xiaonuo.core.annotion.Permission; import vip.xiaonuo.core.enums.LogAnnotionOpTypeEnum; @@ -31,11 +36,7 @@ import vip.xiaonuo.core.pojo.response.SuccessResponseData; import vip.xiaonuo.modular.blogfriendshiplink.param.BlogFriendshipLinkParam; import vip.xiaonuo.modular.blogfriendshiplink.service.BlogFriendshipLinkService; -import org.springframework.web.bind.annotation.RestController; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; + import javax.annotation.Resource; import java.util.List; @@ -74,7 +75,7 @@ @PostMapping("/blogFriendshipLink/add") @BusinessLog(title = "友情链接_增加", opType = LogAnnotionOpTypeEnum.ADD) public ResponseData add(@RequestBody @Validated(BlogFriendshipLinkParam.add.class) BlogFriendshipLinkParam blogFriendshipLinkParam) { - blogFriendshipLinkService.add(blogFriendshipLinkParam); + blogFriendshipLinkService.add(blogFriendshipLinkParam); return new SuccessResponseData(); } @@ -88,7 +89,7 @@ @PostMapping("/blogFriendshipLink/delete") @BusinessLog(title = "友情链接_删除", opType = LogAnnotionOpTypeEnum.DELETE) public ResponseData delete(@RequestBody @Validated(BlogFriendshipLinkParam.delete.class) List<BlogFriendshipLinkParam> blogFriendshipLinkParamList) { - blogFriendshipLinkService.delete(blogFriendshipLinkParamList); + blogFriendshipLinkService.delete(blogFriendshipLinkParamList); return new SuccessResponseData(); } @@ -102,7 +103,7 @@ @PostMapping("/blogFriendshipLink/edit") @BusinessLog(title = "友情链接_编辑", opType = LogAnnotionOpTypeEnum.EDIT) public ResponseData edit(@RequestBody @Validated(BlogFriendshipLinkParam.edit.class) BlogFriendshipLinkParam blogFriendshipLinkParam) { - blogFriendshipLinkService.edit(blogFriendshipLinkParam); + blogFriendshipLinkService.edit(blogFriendshipLinkParam); return new SuccessResponseData(); } -- Gitblit v1.9.1