Files
gxtyzx-admin/src/api/mall/shopGoods/model/index.ts
T
2024-09-27 14:17:12 +08:00

84 lines
1.7 KiB
TypeScript

import type { PageParam } from '@/api';
/**
* 商品记录表
*/
export interface ShopGoods {
// 自增ID
goodsId?: number;
// 类型 1实物商品 2虚拟商品
type?: number;
// 商品编码
code?: string;
// 商品标题
goodsName?: string;
// 商品封面图
image?: string;
// 商品详情
content?: string;
// 父级分类ID
parentId?: number;
// 商品分类ID
categoryId?: number;
// 父级分类
parentName?: string;
// 当前分类
categoryName?: string;
// 三级分类
childrenName?: string;
// 商品规格 0单规格 1多规格
specs?: number;
// 货架
position?: string;
// 单位名称 (个)
unitName?: string;
// 进货价格
price?: string;
// 销售价格
salePrice?: string;
// 库存计算方式(10下单减库存 20付款减库存)
deductStockType?: number;
// 封面图
files?: string;
// 销量
sales?: number;
// 库存
stock?: number;
// 商品重量
goodsWeight?: number;
// 消费赚取积分
gainIntegral?: string;
// 推荐
recommend?: number;
// 商户ID
merchantId?: number;
// 商户名称
merchantName?: string;
// 状态(0:未上架,1:上架)
isShow?: string;
// 状态, 0上架 1待上架 2待审核 3审核不通过
status?: number;
// 备注
comments?: string;
// 排序号
sortNumber?: number;
// 用户ID
userId?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 商品记录表搜索条件
*/
export interface ShopGoodsParam extends PageParam {
goodsId?: number;
keywords?: string;
}