1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import request from '@/utils/request'
- // 获取日程安排列表
- export function List(data) {
- return request({
- url: '/api/system/Schedule/AppList',
- method: 'get',
- data,
- options: {
- load: false
- }
- })
- }
- // 新建日程安排
- export function ScheduleCreate(data) {
- return request({
- url: '/api/system/Schedule',
- method: 'post',
- data,
- options: {
- load: false
- }
- })
- }
- // 删除日程安排
- export function ScheduleDelete(id, type) {
- return request({
- url: `/api/system/Schedule/${id}/${type}`,
- method: 'DELETE',
- options: {
- load: false
- }
- })
- }
- // 获取日程安排信息
- export function ScheduleInfo(id) {
- return request({
- url: `/api/system/Schedule/${id}`,
- method: 'get',
- options: {
- load: false
- }
- })
- }
- // 更新日程安排
- export function ScheduleUpdate(data, type) {
- return request({
- url: `/api/system/Schedule/${data.id}/${type}`,
- method: 'PUT',
- data,
- options: {
- load: false
- }
- })
- }
- //查看日程详情
- export function ScheduleDetail(groupId, id) {
- return request({
- url: `/api/system/Schedule/detail?groupId=${groupId}&id=${id}`,
- method: 'get',
- options: {
- load: false
- }
- })
- }
|