|
@@ -19,7 +19,9 @@ import cn.com.qmth.examcloud.core.examwork.service.bean.UserNoticeInfoQuery;
|
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
|
import com.mysql.cj.util.StringUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -27,13 +29,10 @@ import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
- * 考试分数相关接口
|
|
|
- *
|
|
|
- * @author: fengdesheng
|
|
|
- * @since: 2018/8/27
|
|
|
+ * 公告类
|
|
|
*/
|
|
|
@RestController
|
|
|
-@Api(tags = "考试分数相关接口")
|
|
|
+@Api(tags = "公告类")
|
|
|
@RequestMapping("${$rmp.ctr.examwork}/notice")
|
|
|
public class NoticeController extends ControllerSupport {
|
|
|
@Autowired
|
|
@@ -66,7 +65,7 @@ public class NoticeController extends ControllerSupport {
|
|
|
|
|
|
@PostMapping("/updateNoticeReadStatus")
|
|
|
@ApiOperation(value = "更新通知状态为已读")
|
|
|
- public void updateNoticeReadStatus(@RequestParam(required = true) String noticeId) {
|
|
|
+ public void updateNoticeReadStatus(@ApiParam(value = "通知id,多个以逗号分隔") @RequestParam(required = true) String noticeId) {
|
|
|
if (StringUtils.isNullOrEmpty(noticeId)) {
|
|
|
throw new StatusException("100001", "通知id不允许为空");
|
|
|
}
|