gaoluyang
2026-06-24 712aa51536236d43e87273e4ce45ac5691dffad8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import type { PageParam, PageResult } from '..\..\..\..\..\packages\effects\request\src';
 
import { requestClient } from '#/api/request';
 
export namespace WmsItemBrandApi {
  /** WMS 商品品牌 */
  export interface ItemBrand {
    id?: number;
    code?: string;
    name?: string;
    createTime?: Date;
  }
}
 
/** 查询商品品牌分页 */
export function getItemBrandPage(params: PageParam) {
  return requestClient.get<PageResult<WmsItemBrandApi.ItemBrand>>(
    '/wms/item-brand/page',
    { params },
  );
}
 
/** 查询商品品牌精简列表 */
export function getItemBrandSimpleList() {
  return requestClient.get<WmsItemBrandApi.ItemBrand[]>(
    '/wms/item-brand/simple-list',
  );
}
 
/** 查询商品品牌详情 */
export function getItemBrand(id: number) {
  return requestClient.get<WmsItemBrandApi.ItemBrand>(
    `/wms/item-brand/get?id=${id}`,
  );
}
 
/** 新增商品品牌 */
export function createItemBrand(data: WmsItemBrandApi.ItemBrand) {
  return requestClient.post('/wms/item-brand/create', data);
}
 
/** 修改商品品牌 */
export function updateItemBrand(data: WmsItemBrandApi.ItemBrand) {
  return requestClient.put('/wms/item-brand/update', data);
}
 
/** 删除商品品牌 */
export function deleteItemBrand(id: number) {
  return requestClient.delete(`/wms/item-brand/delete?id=${id}`);
}
 
/** 导出商品品牌 */
export function exportItemBrand(params: any) {
  return requestClient.download('/wms/item-brand/export-excel', { params });
}