From 8577a11e5093871b2b5d6988431e7e22e76d43e6 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期一, 29 四月 2024 01:46:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
framework/src/main/java/com/yuanchu/mom/controller/InformationNotificationController.java | 24 +++++++++++++++++++-----
1 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/framework/src/main/java/com/yuanchu/mom/controller/InformationNotificationController.java b/framework/src/main/java/com/yuanchu/mom/controller/InformationNotificationController.java
index d229273..296bbb2 100644
--- a/framework/src/main/java/com/yuanchu/mom/controller/InformationNotificationController.java
+++ b/framework/src/main/java/com/yuanchu/mom/controller/InformationNotificationController.java
@@ -1,6 +1,7 @@
package com.yuanchu.mom.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.yuanchu.mom.annotation.ValueAuth;
import com.yuanchu.mom.mapper.InformationNotificationMapper;
import com.yuanchu.mom.pojo.InformationNotification;
import com.yuanchu.mom.pojo.InformationNotificationDto;
@@ -31,36 +32,49 @@
@Autowired
private InformationNotificationService informationNotificationService;
- @ApiOperation(value = "婊氬姩鍒嗛〉鏌ヨ")
+ @ApiOperation(value = "娑堟伅閫氱煡-婊氬姩鍒嗛〉鏌ヨ")
@GetMapping("page")
+ @ValueAuth
public Result<?> getPage(Long size, Long current, String messageType) {
return Result.success(informationNotificationService.getPage(new Page<>(current, size), messageType));
}
- @ApiOperation(value = "鏇存柊娑堟伅鐘舵�侊紙鎷掔粷銆佹帴鏀讹級")
+ @ApiOperation(value = "娑堟伅閫氱煡-鏇存柊娑堟伅鐘舵�侊紙鎷掔粷銆佹帴鏀讹級")
@PutMapping("updateMessageStatus")
+ @ValueAuth
public Result<?> updateMessageStatus(@RequestBody InformationNotification informationNotification) {
informationNotificationService.updateById(informationNotification);
return Result.success();
}
- @ApiOperation(value = "鏍囪鎵�鏈変俊鎭负宸茶/鍒犻櫎鎵�鏈夊凡璇绘秷鎭�")
+ @ApiOperation(value = "娑堟伅閫氱煡-鏍囪鎵�鏈変俊鎭负宸茶/鍒犻櫎鎵�鏈夊凡璇绘秷鎭�")
@PutMapping("informationReadOrDelete/{isMarkAllInformationRead}")
+ @ValueAuth
public Result<?> markAllInformationReadOrDeleteAllReadMessages(@PathVariable("isMarkAllInformationRead") Boolean isMarkAllInformationRead) {
informationNotificationService.markAllInformationReadOrDeleteAllReadMessages(isMarkAllInformationRead);
return Result.success();
}
- @ApiOperation(value = "鏍规嵁Id鍒犻櫎鏁版嵁")
+ @ApiOperation(value = "娑堟伅閫氱煡-鍒犻櫎鏁版嵁")
@DeleteMapping("deleteDataBasedOnId")
+ @ValueAuth
public Result<?> deleteDataBasedOnId(Integer id) {
informationNotificationService.removeById(id);
return Result.success();
}
- @ApiOperation(value = "鏌ヨ鏄惁瀛樺湪鏈鏁版嵁")
+ @ApiOperation(value = "娑堟伅閫氱煡-鏌ヨ鏄惁瀛樺湪鏈鏁版嵁")
@GetMapping("checkForUnreadData")
+ @ValueAuth
public Result<?> checkForUnreadData() {
return Result.success(informationNotificationService.checkForUnreadData());
}
+
+ @ApiOperation(value = "娑堟伅閫氱煡-鐐瑰嚮璇︽儏瑙﹀彂淇敼鐘舵�佷负宸茶")
+ @PutMapping("triggerModificationStatusToRead/{id}")
+ @ValueAuth
+ public Result<?> triggerModificationStatusToRead(@PathVariable("id") Integer id) {
+ informationNotificationService.triggerModificationStatusToRead(id);
+ return Result.success();
+ }
}
--
Gitblit v1.9.3