杂项配置面板管理本地Mock自定义店铺支持增删改名
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user