fix 品牌接口

This commit is contained in:
YuanFeng 2024-09-02 10:30:41 +08:00
parent b8766a3e87
commit 432362174e
1 changed files with 32 additions and 0 deletions

View File

@ -14,6 +14,38 @@ export interface BrandVO {
}
// 品牌管理 API
export const BrandApi = {
// 查询品牌管理 分页
getBrandPage: async (params: any) => {
return await request.get({ url: `/oms/brand/page`, params })
},
// 查询品牌管理 详情
getBrand: async (id: number) => {
return await request.get({ url: `/oms/brand/get?id=` + id })
},
// 新增品牌管理
createBrand: async (data: BrandVO) => {
return await request.post({ url: `/oms/brand/create`, data })
},
// 修改品牌管理
updateBrand: async (data: BrandVO) => {
return await request.put({ url: `/oms/brand/update`, data })
},
// 删除品牌管理
deleteBrand: async (id: number) => {
return await request.delete({ url: `/oms/brand/delete?id=` + id })
},
// 导出品牌管理 Excel
exportBrand: async (params) => {
return await request.download({ url: `/oms/brand/export-excel`, params })
},
}
// 获取品牌精简信息列表
export const getSimpleBrandList = (): Promise<BrandVO[]> => {