From 432362174e6c21774205221e9cb3d118bf47b507 Mon Sep 17 00:00:00 2001 From: YuanFeng <770153798@qq.com> Date: Mon, 2 Sep 2024 10:30:41 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=93=81=E7=89=8C=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/oms/brand/index.ts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/hangtag-ui/hangtag-ui-front/src/api/oms/brand/index.ts b/hangtag-ui/hangtag-ui-front/src/api/oms/brand/index.ts index 162ccbf..11ccca0 100644 --- a/hangtag-ui/hangtag-ui-front/src/api/oms/brand/index.ts +++ b/hangtag-ui/hangtag-ui-front/src/api/oms/brand/index.ts @@ -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 => {