杂项配置面板管理本地Mock自定义店铺支持增删改名

This commit is contained in:
yml2213
2026-08-22 14:39:46 +08:00
parent 15396822b5
commit 4bc661c1b5
5 changed files with 273 additions and 9 deletions
@@ -526,6 +526,25 @@ export function fetchAdminMockCustomShops() {
return apiGet<{ items: string[] }>('/api/v1/admin/worker-platform/orders/mock/custom-shops')
}
export function addAdminMockCustomShop(name: string) {
return apiPost<string[]>('/api/v1/admin/worker-platform/orders/mock/custom-shops', {
name,
})
}
export function renameAdminMockCustomShop(name: string, newName: string) {
return apiPut<string[]>('/api/v1/admin/worker-platform/orders/mock/custom-shops', {
name,
newName,
})
}
export function deleteAdminMockCustomShop(name: string) {
return apiDelete<string[]>(
`/api/v1/admin/worker-platform/orders/mock/custom-shops?name=${encodeURIComponent(name)}`,
)
}
export function createAdminMockWorkOrder(payload: {
platformOrderId: string
sellerId: string