浏览代码

管乐迷优化需求

zouxuan 6 月之前
父节点
当前提交
72efd82d40

+ 28 - 0
mec-application/src/main/java/com/ym/mec/student/controller/ImGroupNoticeController.java

@@ -0,0 +1,28 @@
+package com.ym.mec.student.controller;
+
+import com.ym.mec.biz.dal.entity.ImGroupNotice;
+import com.ym.mec.biz.service.ImGroupNoticeService;
+import com.ym.mec.common.controller.BaseController;
+import com.ym.mec.common.entity.HttpResponseResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@RequestMapping("${app-config.url.student:}/imGroupNotice")
+@Api(tags = "即时通讯群公告")
+@RestController
+public class ImGroupNoticeController extends BaseController {
+
+    @Resource
+    private ImGroupNoticeService imGroupNoticeService;
+
+    @ApiOperation(value = "获取群公告")
+    @RequestMapping("/getNotice")
+    public HttpResponseResult<ImGroupNotice> getNotice(Long id) {
+        return succeed(imGroupNoticeService.get(id));
+    }
+
+}

+ 28 - 0
mec-application/src/main/java/com/ym/mec/teacher/controller/ImGroupNoticeController.java

@@ -0,0 +1,28 @@
+package com.ym.mec.teacher.controller;
+
+import com.ym.mec.biz.dal.entity.ImGroupNotice;
+import com.ym.mec.biz.service.ImGroupNoticeService;
+import com.ym.mec.common.controller.BaseController;
+import com.ym.mec.common.entity.HttpResponseResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@RequestMapping("${app-config.url.teacher:}/imGroupNotice")
+@Api(tags = "即时通讯群公告")
+@RestController
+public class ImGroupNoticeController extends BaseController {
+
+    @Resource
+    private ImGroupNoticeService imGroupNoticeService;
+
+    @ApiOperation(value = "获取群公告")
+    @RequestMapping("/getNotice")
+    public HttpResponseResult<ImGroupNotice> getNotice(Long id) {
+        return succeed(imGroupNoticeService.get(id));
+    }
+
+}