فهرست منبع

直播代码 点赞取消登录校验

yuhongqi 1 ماه پیش
والد
کامیت
f5e13614b7
1فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 7 7
      fs-live-app/src/main/java/com/fs/app/controller/LiveDataController.java

+ 7 - 7
fs-live-app/src/main/java/com/fs/app/controller/LiveDataController.java

@@ -26,7 +26,7 @@ public class LiveDataController extends AppBaseController{
     /**
      * 查询直播数据列表
      * */
-    @Login
+//    @Login
     @GetMapping("/list")
     public List<LiveData> list(LiveData liveData) {
         return liveDataService.selectLiveDataList(liveData);
@@ -35,7 +35,7 @@ public class LiveDataController extends AppBaseController{
     /**
      * 查询直播数据详情
      * */
-    @Login
+//    @Login
     @GetMapping("/get/{liveId}")
     public R getLiveData(@PathVariable("liveId") Long liveId) {
         return R.ok().put("liveData", liveDataService.selectLiveDataByLiveId(liveId));
@@ -44,7 +44,7 @@ public class LiveDataController extends AppBaseController{
     /**
      * 点赞
      * */
-    @Login
+//    @Login
     @GetMapping("/like/{liveId}")
     public R like(@PathVariable("liveId") Long liveId) {
         return liveDataService.updateLikeByLiveId(liveId,  Long.parseLong(getUserId()));
@@ -53,7 +53,7 @@ public class LiveDataController extends AppBaseController{
     /**
      * 收藏
      * */
-    @Login
+//    @Login
     @GetMapping("/collect/{liveId}")
     public R collect(@PathVariable("liveId") Long liveId) {
         return R.ok(liveDataService.collect(liveId,  Long.parseLong(getUserId())));
@@ -62,7 +62,7 @@ public class LiveDataController extends AppBaseController{
     /**
      * 关注
      * */
-    @Login
+//    @Login
     @GetMapping("/follow/{liveId}")
     public R follow(@PathVariable("liveId") Long liveId) {
         return R.ok(liveDataService.follow(liveId,  Long.parseLong(getUserId())));
@@ -71,7 +71,7 @@ public class LiveDataController extends AppBaseController{
     /**
      * 收藏/取消收藏店铺
      * */
-    @Login
+//    @Login
     @PostMapping("/collectStore")
     public R collectStore(@RequestParam Long storeId) {
         return R.ok(liveDataService.collectStore(Long.parseLong(getUserId()), storeId));
@@ -80,7 +80,7 @@ public class LiveDataController extends AppBaseController{
     /**
      * 收藏/取消收藏商品
      * */
-    @Login
+//    @Login
     @PostMapping("/collectGoods")
     public R collectProduct(@RequestParam Long goodId) {
         return R.ok(liveDataService.collectProduct(Long.parseLong(getUserId()), goodId));