feat(project): wire quick business status toggle in store list
This commit is contained in:
@@ -76,6 +76,14 @@ export interface SaveStoreDto {
|
||||
serviceTypes?: ServiceType[];
|
||||
}
|
||||
|
||||
/** 快速切换门店营业状态参数 */
|
||||
export interface ToggleStoreBusinessStatusDto {
|
||||
storeId: string;
|
||||
businessStatus: StoreBusinessStatus;
|
||||
closureReason?: number;
|
||||
closureReasonText?: string;
|
||||
}
|
||||
|
||||
/** 获取门店列表 */
|
||||
export async function getStoreListApi(params: StoreListQuery) {
|
||||
return requestClient.get<PaginatedResult<StoreListItemDto>>('/store/list', {
|
||||
@@ -102,3 +110,10 @@ export async function updateStoreApi(data: SaveStoreDto) {
|
||||
export async function deleteStoreApi(id: string) {
|
||||
return requestClient.post('/store/delete', { id });
|
||||
}
|
||||
|
||||
/** 快速切换门店营业状态 */
|
||||
export async function toggleStoreBusinessStatusApi(
|
||||
data: ToggleStoreBusinessStatusDto,
|
||||
) {
|
||||
return requestClient.post('/store/toggle-business-status', data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user