Files
guofu-admin/src/api/shop/goods/model/index.ts
2024-07-25 19:20:53 +08:00

97 lines
1.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { PageParam } from '@/api';
import { GoodsSpec } from '@/api/shop/goodsSpec/model';
import { GoodsSku } from '@/api/shop/goodsSku/model';
export interface GoodsCount {
totalNum: number;
totalNum2: number;
totalNum3: number;
totalNum4: number;
}
/**
* 商品记录表
*/
export interface Goods {
// 自增ID
goodsId?: number;
// 类型 1实物商品 2虚拟商品
type?: number;
// 商品编码
code?: string;
// 商品名称
goodsName?: string;
// 商品封面图
image?: string;
// 商品详情
content?: string;
// 商品附件
files?: string;
// 分类ID
categoryId?: number;
categoryParent?: string;
categoryChildren?: string;
// 分类名称
categoryName?: string;
// 规格
specs?: number;
// 货架
position?: string;
// 进货价格
price?: number;
// 销售价格
salePrice?: string;
// 销量
sales?: number;
// 库存
stock?: number;
// 商品重量
goodsWeight?: number;
// 库存计算方式
deductStockType?: number;
// 推荐
recommend?: number;
// 状态, 0正常, 1待修,2异常已修3异常未修
isShow?: number;
status?: number;
// 备注
comments?: string;
// 排序号
sortNumber?: number;
// 所有人
userId?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 租户id
tenantId?: number;
// 商户ID
merchantId?: number;
// 店铺名称
merchantName?: string;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
// 商品规格
goodsSpecs?: GoodsSpec[];
// 商品sku列表
goodsSkus?: GoodsSku[];
}
export interface BathSet {
price?: number;
salePrice?: number;
stock?: number;
skuNo?: string;
}
/**
* 商品记录表搜索条件
*/
export interface GoodsParam extends PageParam {
goodsId?: number;
status?: number;
isShow?: number;
stock?: number;
keywords?: string;
}