diff --git a/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java b/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java index 4dd16d7..e692c94 100644 --- a/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java +++ b/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java @@ -95,7 +95,7 @@ public class JournalController { journalRespDTO.setId(article.getId()); journalRespDTO.setJournalNo(article.getVolid()); journalRespDTO.setTitle(article.getTitle()); - journalRespDTO.setImage(Constants.MUSIC_RESOURCE_PREFIX + article.getImage()); + journalRespDTO.setImage(Constants.MUSIC_RESOURCE_PREFIX + article.getImage()); journalRespDTO.setDate(getEditDate(article)); journalRespDTO.setHaveCollect(journalCollectSet.contains(journalRespDTO.getId())); return journalRespDTO; diff --git a/luoo_user/src/main/java/com/luoo/user/controller/UserCollectInfoController.java b/luoo_user/src/main/java/com/luoo/user/controller/UserCollectInfoController.java index 493cd25..6b700d4 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/UserCollectInfoController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/UserCollectInfoController.java @@ -20,18 +20,18 @@ public class UserCollectInfoController extends BaseController { @Autowired private UserCollectInfoService userCollectInfoService; - - @PostMapping("/save") - public Result save(){ - userCollectInfoService.save(); - return Result.success(); - } - - @GetMapping("/show") - public Result show(){ - UserCollectInfo userCollectInfo =userCollectInfoService.findByUserId("111222"); - return Result.success(userCollectInfo); - } +// +// @PostMapping("/save") +// public Result save(){ +// userCollectInfoService.save(); +// return Result.success(); +// } +// +// @GetMapping("/show") +// public Result show(){ +// UserCollectInfo userCollectInfo =userCollectInfoService.findByUserId("111222"); +// return Result.success(userCollectInfo); +// } // // @PutMapping("/unCollect") // public Result unCollect() { @@ -62,12 +62,11 @@ public class UserCollectInfoController extends BaseController { if("song".equals(type)) { userCollectInfoService.collectSong(userid,id); } - return Result.success(); } /** - * 收藏 type为journal 为期刊,type为song为单曲 + * 取消收藏 type为journal 为期刊,type为song为单曲 */ @PostMapping("/unCollect/{type}/{id}") public Result unCollect(@PathVariable String type,@PathVariable String id) {