2025-09-16 14:05:39 +08:00
|
|
|
import { get, post } from "@/utils/request";
|
2025-09-15 22:40:32 +08:00
|
|
|
|
|
|
|
|
// 根据ID获取消息推送详情
|
|
|
|
|
export const xxtsFindByIdApi = async (params: any) => {
|
|
|
|
|
return await get("/api/xxts/findById", params);
|
2025-09-16 14:05:39 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 获取消息推送列表(替代待办)
|
|
|
|
|
export const xxtsListApi = async (params: any) => {
|
|
|
|
|
return await get("/api/xxts/findPage", params);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 添加更新消息推送
|
|
|
|
|
export const xxtsSaveApi = async (params: any) => {
|
|
|
|
|
return await post("/api/xxts/save", params);
|
2025-10-15 20:21:34 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 更新消息状态为已阅
|
|
|
|
|
export const xxtsUpdateDbZtApi = async (id: string) => {
|
|
|
|
|
return await post("/api/xxts/updateDbZt", id);
|
2025-09-15 22:40:32 +08:00
|
|
|
};
|