71 lines
1.3 KiB
JavaScript
71 lines
1.3 KiB
JavaScript
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: "put",
|
|
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 },
|
|
});
|
|
}
|
|
|
|
/** 测试提醒渠道 */
|
|
export function testReminder(data) {
|
|
return request({
|
|
url: "/platform/reminder/test",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
/** 结束提醒 */
|
|
export function finishReminder(id) {
|
|
return request({
|
|
url: `/platform/reminder/${id}/finish`,
|
|
method: "post",
|
|
});
|
|
}
|