|
@@ -6,16 +6,11 @@ import com.yonge.cooleshow.biz.dal.service.ImGroupNoticeService;
|
|
|
import com.yonge.cooleshow.common.controller.BaseController;
|
|
|
import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
import com.yonge.toolset.base.page.PageInfo;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiImplicitParam;
|
|
|
-import io.swagger.annotations.ApiImplicitParams;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -31,7 +26,7 @@ public class ImGroupNoticeController extends BaseController {
|
|
|
/**
|
|
|
* 服务对象
|
|
|
*/
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private ImGroupNoticeService imGroupNoticeService;
|
|
|
|
|
|
@ApiImplicitParams({
|
|
@@ -42,5 +37,11 @@ public class ImGroupNoticeController extends BaseController {
|
|
|
public HttpResponseResult<PageInfo<ImGroupNoticeDto>> queryPage(@RequestBody Map<String,Object> params) throws Exception {
|
|
|
return succeed(imGroupNoticeService.queryPage(params));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("获取群公告")
|
|
|
+ @GetMapping(value = "/get/{noticeId}")
|
|
|
+ public HttpResponseResult<ImGroupNoticeDto> get(@ApiParam(value = "群公告编号", required = true) @PathVariable("noticeId") Long noticeId){
|
|
|
+ return succeed(imGroupNoticeService.getNotice(noticeId));
|
|
|
+ }
|
|
|
}
|
|
|
|