请求路径和白名单管理优化

This commit is contained in:
xiaowang
2026-02-27 14:20:20 +08:00
parent 244e761fd2
commit 6adfd2f025
18 changed files with 75 additions and 98 deletions
-16
View File
@@ -54,21 +54,5 @@ export const shopApi = {
getShopById: (id: number) => {
return api.get<ShopVO>(`/shop/get/${id}`)
},
listShops: (params: ListShopsParams) => {
return api.get<any>('/admin/shop/list', { params })
},
createShop: (data: CreateShopRequest) => {
return api.post('/admin/shop/create', data)
},
updateShop: (id: number, data: UpdateShopRequest) => {
return api.put(`/admin/shop/update/${id}`, data)
},
deleteShop: (id: number) => {
return api.delete(`/admin/shop/delete/${id}`)
}
}