Initial commit
This commit is contained in:
84
src/api/shop/goods/model/index.ts
Normal file
84
src/api/shop/goods/model/index.ts
Normal file
@@ -0,0 +1,84 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import { GoodsSpec } from '@/api/shop/goodsSpec/model';
|
||||
import { GoodsSku } from '@/api/shop/goodsSku/model';
|
||||
|
||||
/**
|
||||
* 商品记录表
|
||||
*/
|
||||
export interface Goods {
|
||||
// 自增ID
|
||||
goodsId?: number;
|
||||
// 类型 1实物商品 2虚拟商品
|
||||
type?: number;
|
||||
// 商品编码
|
||||
code?: string;
|
||||
// 商品标题
|
||||
title?: 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异常未修
|
||||
status?: number;
|
||||
// 备注
|
||||
comments?: string;
|
||||
// 排序号
|
||||
sortNumber?: number;
|
||||
// 所有人
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 商户ID
|
||||
merchantId?: number;
|
||||
// 创建时间
|
||||
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;
|
||||
keywords?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user