浏览代码

侧边栏发文字-卡片

三七 4 天之前
父节点
当前提交
6e6f55d0e0

+ 20 - 17
fs-qwhook-sop/src/main/java/com/fs/app/controller/ApisFsUserCourseVideoController.java

@@ -1,18 +1,12 @@
 package com.fs.app.controller;
 
-import com.alibaba.fastjson.JSONObject;
 import com.fs.common.annotation.Log;
 import com.fs.common.annotation.RateLimiter;
 import com.fs.common.annotation.RepeatSubmit;
 import com.fs.common.core.controller.BaseController;
 import com.fs.common.core.domain.R;
-import com.fs.common.core.page.TableDataInfo;
 import com.fs.common.enums.BusinessType;
-import com.fs.course.domain.FsUserCourse;
-import com.fs.course.param.FsCourseLinkCreateParam;
 import com.fs.course.param.FsCourseLinkMiniParam;
-import com.fs.course.param.FsCourseLinkRoomParam;
-import com.fs.course.param.newfs.UserCourseVideoPageParam;
 import com.fs.course.service.IFsCourseLinkService;
 import com.fs.course.service.IFsUserCoursePeriodService;
 import com.fs.course.service.IFsUserCourseService;
@@ -20,8 +14,6 @@ import com.fs.course.service.IFsUserCourseVideoService;
 import com.fs.course.param.FsCourseListBySidebarParam;
 import com.fs.course.vo.FsCourseListBySidebarVO;
 import com.fs.course.vo.FsCourseVideoListBySidebarVO;
-import com.fs.course.vo.newfs.FsUserCourseVideoPageListVO;
-import com.fs.qw.domain.QwTag;
 import com.fs.qw.domain.QwTagGroup;
 import com.fs.qw.domain.QwUser;
 import com.fs.qw.param.QwGroupMsgParam;
@@ -182,17 +174,9 @@ public class ApisFsUserCourseVideoController extends BaseController {
     }
 
 
-    @PostMapping("/sendSidebarOfficial")
-    @ApiOperation("侧边栏发官方群发链接")
-    @RateLimiter(time=10,count = 1)
-    @Log(title = "侧边栏发官方群发链接", businessType = BusinessType.INSERT)
-    public R sendSidebarOfficial(@RequestBody QwGroupMsgParam qwGroupMsgParam) throws Exception {
-
-        return qwGroupMsgService.sendSidebarOfficial(qwGroupMsgParam);
-    }
 
     @PostMapping("/selectTagList")
-    @ApiOperation("侧边栏发官方群发链接")
+    @ApiOperation("查询标签列表")
     public R selectTagList(@RequestBody QwTagGroup qwTagGroup) {
 
         if (StringUtil.strIsNullOrEmpty(qwTagGroup.getName())){
@@ -212,4 +196,23 @@ public class ApisFsUserCourseVideoController extends BaseController {
 
     }
 
+
+
+    @PostMapping("/sendSidebarOfficial")
+    @ApiOperation("侧边栏发官方群发链接")
+    @RateLimiter(time=10,count = 1)
+    @Log(title = "侧边栏发官方群发链接", businessType = BusinessType.INSERT)
+    public R sendSidebarOfficial(@RequestBody QwGroupMsgParam qwGroupMsgParam) throws Exception {
+
+        return qwGroupMsgService.sendSidebarOfficial(qwGroupMsgParam);
+    }
+
+    @PostMapping("/sendSidebarImageText")
+    @ApiOperation("侧边栏发群发图片链接链接")
+    @RateLimiter(time=10,count = 1)
+    @Log(title = "侧边栏发官方群发链接", businessType = BusinessType.INSERT)
+    public R sendSidebarImageText(@RequestBody QwGroupMsgParam msgParam) throws Exception {
+        return qwGroupMsgService.insertQwGroupMsg(msgParam);
+    }
+
 }

+ 9 - 0
fs-qwhook-sop/src/main/java/com/fs/app/controller/FsUserCourseVideoController.java

@@ -2,6 +2,7 @@ package com.fs.app.controller;
 
 import com.alibaba.fastjson.JSONObject;
 import com.fs.common.annotation.Log;
+import com.fs.common.annotation.RateLimiter;
 import com.fs.common.annotation.RepeatSubmit;
 import com.fs.common.core.controller.BaseController;
 import com.fs.common.core.domain.R;
@@ -188,6 +189,14 @@ public class FsUserCourseVideoController  extends BaseController  {
         return qwGroupMsgService.sendSidebarOfficial(qwGroupMsgParam);
     }
 
+    @PostMapping("/sendSidebarImageText")
+    @ApiOperation("侧边栏发群发图片链接链接")
+    @RateLimiter(time=10,count = 1)
+    @Log(title = "侧边栏发官方群发链接", businessType = BusinessType.INSERT)
+    public R sendSidebarImageText(@RequestBody QwGroupMsgParam msgParam) throws Exception {
+        return qwGroupMsgService.insertQwGroupMsg(msgParam);
+    }
+
     @PostMapping("/selectTagList")
     @ApiOperation("标签列表")
     public TableDataInfo selectTagList(@RequestBody QwTagGroup qwTagGroup) throws Exception {