Result<?>
@AutoLog(value = "app消息通知-已读")
@ApiOperation(value="app消息通知-已读", notes="app消息通知-已读")
@GetMapping(value = "/queryMessageRead")
public Result<?> queryMessageRead(@RequestParam(name = "sysId") String sysId) {
SysAnnouncementSend announcementSend = sysAnnouncementSendService.getById(sysId);
if(announcementSend==null) {
return Result.ok("操作失败");
}else {
announcementSend.setReadFlag(AnnouncementConstant.READFLAG_1);
boolean ok = sysAnnouncementSendService.updateById(announcementSend);
//TODO 返回false说明什么?
if(ok) {
return Result.ok("操作成功");
}
}
return Result.ok("操作成功");
}
{
"success": true,
"message": "操作成功",
"code": 200,
"result": null,
"timestamp": 1594694789996
}
Result「?」 返回类型拼接
最新推荐文章于 2024-04-19 21:34:01 发布