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 });
|
}
|