|
|
@ -31,7 +31,7 @@ public class UserCollectController {
|
|
|
|
@ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单", required = true) })
|
|
|
|
@ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单", required = true) })
|
|
|
|
@PostMapping
|
|
|
|
@PostMapping
|
|
|
|
@GlobalInterceptor(checkAppUserLogin = true)
|
|
|
|
@GlobalInterceptor(checkAppUserLogin = true)
|
|
|
|
public Result<Void> addCollect(@RequestHeader(value = "Authorization", required = false) String authorization,
|
|
|
|
public Result<Void> addCollect(@RequestHeader(value = "Authorization", required = true) String authorization,
|
|
|
|
@VerifyParam(required = true) @RequestParam("objectId") String objectId,
|
|
|
|
@VerifyParam(required = true) @RequestParam("objectId") String objectId,
|
|
|
|
@VerifyParam(required = true) @RequestParam("collectType") Integer collectType) {
|
|
|
|
@VerifyParam(required = true) @RequestParam("collectType") Integer collectType) {
|
|
|
|
UserLoginDto loginDto = jwtUtil.getUserLoginDto(authorization);
|
|
|
|
UserLoginDto loginDto = jwtUtil.getUserLoginDto(authorization);
|
|
|
@ -48,7 +48,7 @@ public class UserCollectController {
|
|
|
|
@ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单,4:粉丝", required = true) })
|
|
|
|
@ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单,4:粉丝", required = true) })
|
|
|
|
@DeleteMapping
|
|
|
|
@DeleteMapping
|
|
|
|
@GlobalInterceptor(checkAppUserLogin = true)
|
|
|
|
@GlobalInterceptor(checkAppUserLogin = true)
|
|
|
|
public Result<Void> cancelCollect(@RequestHeader(value = "Authorization", required = false) String authorization,
|
|
|
|
public Result<Void> cancelCollect(@RequestHeader(value = "Authorization", required = true) String authorization,
|
|
|
|
@VerifyParam(required = true) @RequestParam("objectId") String objectId,
|
|
|
|
@VerifyParam(required = true) @RequestParam("objectId") String objectId,
|
|
|
|
@VerifyParam(required = true) @RequestParam("collectType") Integer collectType) {
|
|
|
|
@VerifyParam(required = true) @RequestParam("collectType") Integer collectType) {
|
|
|
|
UserLoginDto loginDto = jwtUtil.getUserLoginDto(authorization);
|
|
|
|
UserLoginDto loginDto = jwtUtil.getUserLoginDto(authorization);
|
|
|
|