From 471f1f3c0fdcd1a167f2b8851bf4a0b0c9d682c8 Mon Sep 17 00:00:00 2001 From: pikaqiudeshujia Date: Mon, 6 May 2024 16:27:51 +0800 Subject: [PATCH] =?UTF-8?q?release-=20=E6=96=B0=E5=A2=9E=E4=B8=93=E8=BE=91?= =?UTF-8?q?=E6=94=B6=E8=97=8F=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luoo_common/src/main/java/enums/CollectTypeEnum.java | 8 +++++++- .../com/luoo/user/controller/UserCollectController.java | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/luoo_common/src/main/java/enums/CollectTypeEnum.java b/luoo_common/src/main/java/enums/CollectTypeEnum.java index be8dc3d..6d14068 100644 --- a/luoo_common/src/main/java/enums/CollectTypeEnum.java +++ b/luoo_common/src/main/java/enums/CollectTypeEnum.java @@ -1,7 +1,13 @@ package enums; public enum CollectTypeEnum { - SONG(0, "歌曲"), JOURNAL(1, "期刊"), FOLLOWS(2, "关注"), BLACK_LIST(3, "黑名单"), FANS(4, "粉丝"), THUMB_UP(5, "点赞"); + SONG(0, "歌曲"), + JOURNAL(1, "期刊"), + FOLLOWS(2, "关注"), + BLACK_LIST(3, "黑名单"), + FANS(4, "粉丝"), + THUMB_UP(5, "点赞"), + ALBUM(6, "收藏专辑"); private Integer type; private String description; diff --git a/luoo_user/src/main/java/com/luoo/user/controller/UserCollectController.java b/luoo_user/src/main/java/com/luoo/user/controller/UserCollectController.java index 4b774e9..0ada64a 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/UserCollectController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/UserCollectController.java @@ -28,7 +28,7 @@ public class UserCollectController { //@ApiImplicitParam(name = "objectId", value = "喜欢歌曲/收藏期刊/关注某用户/某用户列入黑名单/点赞评论的id", required = true), //@ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单,4:点赞", required = true) }) @ApiImplicitParam(name = "objectId", value = "喜欢歌曲/收藏期刊/关注某用户/某用户列入黑名单的id", required = true), - @ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单", required = true) }) + @ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单,4:粉丝,5:点赞,6:专辑", required = true) }) @PostMapping @GlobalInterceptor(checkAppUserLogin = true) public Result addCollect(@RequestHeader(value = "Authorization", required = true) String authorization, @@ -46,7 +46,7 @@ public class UserCollectController { //@ApiImplicitParam(name = "objectId", value = "喜欢歌曲/收藏期刊/关注某用户/某用户列入黑名单/点赞评论的id", required = true), //@ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单,4:点赞", required = true) }) @ApiImplicitParam(name = "objectId", value = "喜欢歌曲/收藏期刊/关注某用户/某用户列入黑名单/粉丝的id", required = true), - @ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单,4:粉丝", required = true) }) + @ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单,4:粉丝,5:点赞,6:专辑", required = true) }) @DeleteMapping @GlobalInterceptor(checkAppUserLogin = true) public Result cancelCollect(@RequestHeader(value = "Authorization", required = true) String authorization,