211 lines
4.0 KiB
TypeScript
211 lines
4.0 KiB
TypeScript
export interface Prod extends PageParam {
|
||
/**
|
||
* 商品简称
|
||
*/
|
||
abbreviation?: string;
|
||
/**
|
||
* 是否特殊日期(节假日周末什么的)0关1开
|
||
*/
|
||
additionalFeeSwitch?: number;
|
||
/**
|
||
* 是否特殊时段0关1开
|
||
*/
|
||
additionalSwitch?: number;
|
||
/**
|
||
* 品牌
|
||
*/
|
||
brand?: string;
|
||
/**
|
||
* 简要描述,卖点等
|
||
*/
|
||
brief?: string;
|
||
/**
|
||
* 商品分类
|
||
*/
|
||
categoryId?: number;
|
||
/**
|
||
* 详细描述
|
||
*/
|
||
content?: string;
|
||
/**
|
||
* 创建时间
|
||
*/
|
||
createTime?: string;
|
||
/**
|
||
* 创建者,目前使用 SysUser 的 id 编号
|
||
*
|
||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||
*/
|
||
creator?: string;
|
||
/**
|
||
* 是否删除
|
||
*/
|
||
deleted?: number;
|
||
/**
|
||
* 是否紧急响应服务0关1开
|
||
*/
|
||
emergencySwitch?: number;
|
||
/**
|
||
* 商品轮播图片,以,分割
|
||
*/
|
||
imgs?: string;
|
||
/**
|
||
* 是否置灰0否1是
|
||
*/
|
||
isProhibit?: number;
|
||
/**
|
||
* 关键词
|
||
*/
|
||
keyword?: string;
|
||
/**
|
||
* 是否接单上线0关1开
|
||
*/
|
||
orderLimitSwitch?: number;
|
||
/**
|
||
* 商品主图
|
||
*/
|
||
pic?: string;
|
||
/**
|
||
* 审核备注
|
||
*/
|
||
processNotes?: string;
|
||
/**
|
||
* 产品ID
|
||
*/
|
||
prodId?: number;
|
||
/**
|
||
* 商品名称
|
||
*/
|
||
prodName?: string;
|
||
/**
|
||
* 商品编号
|
||
*/
|
||
prodNumber?: string;
|
||
/**
|
||
* 是否开启区域0关1开
|
||
*/
|
||
regionSwitch?: number;
|
||
/**
|
||
* 是否预约0关1开
|
||
*/
|
||
reservationSwitch?: number;
|
||
/**
|
||
* seo搜索
|
||
*/
|
||
seoSearch?: string;
|
||
/**
|
||
* seo标题
|
||
*/
|
||
seoShortName?: string;
|
||
/**
|
||
* 分享话术
|
||
*/
|
||
shareContent?: string;
|
||
/**
|
||
* 分享图
|
||
*/
|
||
shareImage?: string;
|
||
/**
|
||
* 店铺id
|
||
*/
|
||
shopId?: number;
|
||
/**
|
||
* 销量
|
||
*/
|
||
soldNum?: number;
|
||
/**
|
||
* 默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核
|
||
*/
|
||
status?: number;
|
||
/**
|
||
* 标签
|
||
*/
|
||
tag?: string[];
|
||
/**
|
||
* 展示的权重
|
||
*/
|
||
top?: number;
|
||
/**
|
||
* 更新者,目前使用 SysUser 的 id 编号
|
||
*
|
||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||
*/
|
||
updater?: string;
|
||
/**
|
||
* 最后更新时间
|
||
*/
|
||
updateTime?: string;
|
||
/**
|
||
* 版本 乐观锁
|
||
*/
|
||
version?: number;
|
||
/**
|
||
* 视频
|
||
*/
|
||
video?: string;
|
||
/**
|
||
* 是否开启体重配置0关1开
|
||
*/
|
||
weightSwitch?: number;
|
||
/**
|
||
* 商品轮播图片,以,分割
|
||
*/
|
||
whiteImg?: string;
|
||
[property: string]: any;
|
||
}
|
||
|
||
export interface SkuList {
|
||
skuName: string; //规格名称
|
||
basePrice?: number; //基准价格 *
|
||
price?: number; //"当前价"
|
||
isSpecs?: number; //默认规格
|
||
stocksFlg?: number; //库存类型
|
||
status?: number; //状态
|
||
stocks?: number; //可售数量
|
||
isShelf?: number; //上/下架
|
||
skuId?: number;
|
||
isExist?: number;
|
||
propIds?: string;
|
||
deleteTime?: number; //删除时间
|
||
remainingDays?: number; //保留时间
|
||
id?: number;
|
||
// 添加索引签名,允许动态属性
|
||
[key: string]: string | number | undefined;
|
||
}
|
||
export interface SkuPropValues {
|
||
id?: number;
|
||
propValue: string;
|
||
valueId: number;
|
||
state: 0 | 1; // 0禁用1启用
|
||
isExist: 0 | 1; //是否新增 0否1是
|
||
sort: number;
|
||
isExpire: 0 | 1 /**是否失效0否1是**/;
|
||
}
|
||
export interface SkuConfig {
|
||
propName: string; //规格名字
|
||
propId: number;
|
||
id?: number;
|
||
isExist?: number; // //是否新增 0否1是
|
||
prodPropValues: SkuPropValues[]; //规格值
|
||
}
|
||
|
||
export interface ProdDetail {
|
||
prodName: string; //商品名称
|
||
abbreviation?: string; //商品简称
|
||
brief?: string; //商品概述
|
||
prodNumber?: string; //商品编码
|
||
brand?: string; //品牌
|
||
shopId?: string; //商品所有权
|
||
categoryId?: number; //关联类目
|
||
tag?: string[]; //商品标签
|
||
skuList: SkuList[];
|
||
prodPropSaveReqVO: SkuConfig;
|
||
}
|
||
|
||
export interface ProdReq extends PageParam {
|
||
name?: string;
|
||
status?: 0 | 1 | 2; //状态 1,正常状态(出售中), 0:下架(仓库中) 2:待审核
|
||
prodName?: string; // 商品名称
|
||
createTime?: Date; //创建时间
|
||
}
|