增加通知模块

This commit is contained in:
2026-06-17 21:44:08 +08:00
parent 4e1b30b3cc
commit d3886e2475
9 changed files with 1569 additions and 150 deletions
+53
View File
@@ -0,0 +1,53 @@
import request from "@/utils/request";
/** 提醒列表 */
export function getReminderList(params) {
return request({
url: "/platform/reminder/list",
method: "get",
params,
});
}
/** 提醒详情 */
export function getReminderDetail(id) {
return request({
url: `/platform/reminder/${id}`,
method: "get",
});
}
/** 新增提醒 */
export function createReminder(data) {
return request({
url: "/platform/reminder",
method: "post",
data,
});
}
/** 更新提醒 */
export function updateReminder(id, data) {
return request({
url: `/platform/reminder/${id}`,
method: "post",
data,
});
}
/** 删除提醒 */
export function deleteReminder(id) {
return request({
url: `/platform/reminder/${id}`,
method: "delete",
});
}
/** 批量删除提醒 */
export function batchDeleteReminder(ids) {
return request({
url: "/platform/reminder/batchDelete",
method: "post",
data: { ids },
});
}