zouyu
7 天以前 dc7300e21fe53f74e08eb2fa494a83430e2e54ca
inspect-server/src/main/java/com/ruoyi/inspect/controller/InformationNotificationController.java
@@ -37,4 +37,19 @@
    public Result<?> msgRoll(Page page) {
        return Result.success(informationNotificationService.msgRoll(page));
    }
    @ApiOperation(value = "消息通知-点击详情触发修改状态为已读")
    @PostMapping("triggerModificationStatusToRead")
    public Result<?> triggerModificationStatusToRead(@RequestBody Map<String, Integer> params) {
        Integer id = params.get("id");
        informationNotificationService.triggerModificationStatusToRead(id);
        return Result.success();
    }
    @ApiOperation(value = "消息通知-标记所有信息为已读/删除所有已读消息")
    @PostMapping("informationReadOrDelete/{isMarkAllInformationRead}")
    public Result<?> markAllInformationReadOrDeleteAllReadMessages(@PathVariable("isMarkAllInformationRead") Boolean isMarkAllInformationRead) {
        informationNotificationService.markAllInformationReadOrDeleteAllReadMessages(isMarkAllInformationRead);
        return Result.success();
    }
}