ny
22 小时以前 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { defHttp } from '#/api/request';
 
enum Api {
  Prefix = '/api/system/Schedule',
}
 
// 获取日程安排列表
export function getScheduleList(data) {
  return defHttp.get({ url: Api.Prefix, data });
}
// 新建日程安排
export function createSchedule(data) {
  return defHttp.post({ url: Api.Prefix, data });
}
// 更新日程安排
export function updateSchedule(data, type) {
  return defHttp.put({ url: `${Api.Prefix}/${data.id}/${type}`, data });
}
// 删除日程安排
export function delSchedule(id, type) {
  return defHttp.delete({ url: `${Api.Prefix}/${id}/${type}` });
}
// 获取日程安排信息
export function getScheduleInfo(id) {
  return defHttp.get({ url: `${Api.Prefix}/${id}` });
}
// 查看日程详情
export function getScheduleDetail(groupId, id) {
  return defHttp.get({ url: `${Api.Prefix}/detail?groupId=${groupId}&id=${id}` });
}