给店铺增加排班规则
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { adminApi } from '@/api/client'
|
||||
import type { ShopInfo } from '@/types/manager'
|
||||
import type { ShopInfo, ShopScheduleException } from '@/types/manager'
|
||||
|
||||
export const managerShopApi = {
|
||||
info(): Promise<ShopInfo> {
|
||||
@@ -8,6 +8,12 @@ export const managerShopApi = {
|
||||
update(data: Partial<ShopInfo>): Promise<boolean> {
|
||||
return adminApi.put('/manager/shop', data)
|
||||
},
|
||||
scheduleExceptions(params?: { startDate?: string; endDate?: string }): Promise<ShopScheduleException[]> {
|
||||
return adminApi.get('/manager/shop/schedule-exceptions', { params })
|
||||
},
|
||||
saveScheduleException(data: ShopScheduleException): Promise<ShopScheduleException> {
|
||||
return adminApi.post('/manager/shop/schedule-exceptions', data)
|
||||
},
|
||||
exportPreview(params: { type: string; startDate: string; endDate: string }): Promise<unknown> {
|
||||
return adminApi.get('/export', { params })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user