给店铺增加排班规则

This commit is contained in:
2026-07-01 02:08:51 +08:00
parent 4c455e47e0
commit 032c4b8bd6
29 changed files with 1497 additions and 77 deletions
+7 -1
View File
@@ -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 })
}