|
@@ -34,7 +34,7 @@ public class ImGroupNoticeController extends BaseController {
|
|
|
|
|
|
@ApiOperation("新增群公告")
|
|
|
@PostMapping(value = "/create")
|
|
|
- public HttpResponseResult<Boolean> create(@Valid @RequestBody ImGroupNotice imGroupNotice, BindingResult bindingResult){
|
|
|
+ public HttpResponseResult create(@Valid @RequestBody ImGroupNotice imGroupNotice, BindingResult bindingResult){
|
|
|
ValidationKit.ignoreFields(bindingResult,"id");
|
|
|
imGroupNoticeService.create(imGroupNotice);
|
|
|
return succeed();
|
|
@@ -42,14 +42,14 @@ public class ImGroupNoticeController extends BaseController {
|
|
|
|
|
|
@ApiOperation("删除群公告")
|
|
|
@PostMapping(value = "/del/{noticeId}")
|
|
|
- public HttpResponseResult<Boolean> del(@ApiParam(value = "群公告编号", required = true) @PathVariable("noticeId") Long noticeId){
|
|
|
+ public HttpResponseResult del(@ApiParam(value = "群公告编号", required = true) @PathVariable("noticeId") Long noticeId){
|
|
|
imGroupNoticeService.del(noticeId);
|
|
|
return succeed();
|
|
|
}
|
|
|
|
|
|
@ApiOperation("修改群公告")
|
|
|
@PostMapping(value = "/update")
|
|
|
- public HttpResponseResult<Boolean> modify(@Valid @RequestBody ImGroupNotice imGroupNotice){
|
|
|
+ public HttpResponseResult modify(@Valid @RequestBody ImGroupNotice imGroupNotice){
|
|
|
imGroupNoticeService.modify(imGroupNotice);
|
|
|
return succeed();
|
|
|
}
|