| | |
| | | import { request } from '@/service/request'; |
| | | |
| | | /** 获取班次列表 */ |
| | | export function fetchGetShiftList (params?: Api.Md.ShiftSearchParams) { |
| | | return request<Api.Md.ShiftList>({ |
| | | url: '/md/shift/list', |
| | | method: 'get', |
| | | params |
| | | }); |
| | | export function fetchGetShiftList(params?: Api.Md.ShiftSearchParams) { |
| | | return request<Api.Md.ShiftList>({ |
| | | url: '/md/shift/list', |
| | | method: 'get', |
| | | params |
| | | }); |
| | | } |
| | | /** 新增班次 */ |
| | | export function fetchCreateShift (data: Api.Md.ShiftOperateParams) { |
| | | return request<boolean>({ |
| | | url: '/md/shift', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | export function fetchCreateShift(data: Api.Md.ShiftOperateParams) { |
| | | return request<boolean>({ |
| | | url: '/md/shift', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | /** 修改班次 */ |
| | | export function fetchUpdateShift (data: Api.Md.ShiftOperateParams) { |
| | | return request<boolean>({ |
| | | url: '/md/shift', |
| | | method: 'put', |
| | | data |
| | | }); |
| | | export function fetchUpdateShift(data: Api.Md.ShiftOperateParams) { |
| | | return request<boolean>({ |
| | | url: '/md/shift', |
| | | method: 'put', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | /** 批量删除班次 */ |
| | | export function fetchBatchDeleteShift (ids: CommonType.IdType[]) { |
| | | return request<boolean>({ |
| | | url: `/md/shift/${ids.join(',')}`, |
| | | method: 'delete' |
| | | }); |
| | | export function fetchBatchDeleteShift(ids: CommonType.IdType[]) { |
| | | return request<boolean>({ |
| | | url: `/md/shift/${ids.join(',')}`, |
| | | method: 'delete' |
| | | }); |
| | | } |