This commit is contained in:
qsh
2024-05-31 17:38:17 +08:00
parent de522af86f
commit a557255b4a
29 changed files with 675 additions and 260 deletions

View File

@@ -32,27 +32,27 @@ export interface BrandVO {
// 创建商品品牌
export const createBrand = (data: BrandVO) => {
return request.post({ url: '/product/brand/create', data })
return request.post({ url: '/admin-api/crm/erp-product-brand/create', data })
}
// 更新商品品牌
export const updateBrand = (data: BrandVO) => {
return request.put({ url: '/product/brand/update', data })
return request.put({ url: '/admin-api/crm/erp-product-brand/update', data })
}
// 删除商品品牌
export const deleteBrand = (id: number) => {
return request.delete({ url: `/product/brand/delete?id=${id}` })
return request.delete({ url: `/admin-api/crm/erp-product-brand/delete?id=${id}` })
}
// 获得商品品牌
export const getBrand = (id: number) => {
return request.get({ url: `/product/brand/get?id=${id}` })
return request.get({ url: `/admin-api/crm/erp-product-brand/get?id=${id}` })
}
// 获得商品品牌列表
export const getBrandParam = (params: PageParam) => {
return request.get({ url: '/product/brand/page', params })
return request.get({ url: '/admin-api/crm/erp-product-brand/page', params })
}
// 获得商品品牌精简信息列表