Files
template-10490/api/cms/cmsProduct/model/index.ts
2025-01-27 23:24:42 +08:00

106 lines
2.4 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 type {CmsProductParameter} from "~/api/cms/cmsProductParameter/model";
import type {CmsProductUrl} from "~/api/cms/cmsProductUrl/model";
/**
* 产品
*/
export interface CmsProduct {
// 自增ID
productId?: number;
// 类型 0软件产品 1实物商品 2虚拟商品
type?: number;
// 产品编码
code?: string;
// 产品标题
title?: string;
// 封面图
image?: string;
// 产品详情
content?: string;
// 父级分类ID
parentId?: number;
// 产品分类ID
categoryId?: number;
// 产品规格 0单规格 1多规格
specs?: number;
// 货架
position?: string;
// 单位名称 (个)
unitName?: string;
// 进货价格
price?: number;
// 销售价格
salePrice?: number;
// 库存计算方式(10下单减库存 20付款减库存)
deductStockType?: number;
// 轮播图
files?: any;
// 销量
sales?: number;
// 库存
stock?: number;
// 安装次数
install?: number;
// 消费赚取积分
gainIntegral?: string;
// 计费方式
durationMethod?: number;
// 推荐
recommend?: number;
// 商户ID
merchantId?: number;
merchantName: undefined,
merchantAvatar: undefined,
merchantComments: undefined,
// 状态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;
// 父级分类名称
parentName?: string;
// 父级分类路径
parentPath?: string;
// 分类名称
categoryName?: string;
// 评分
rate?: string;
// 是否已购买
isBuy?: boolean;
// 是否已安装插件
installed?: boolean;
// 产品参数
parameters?: CmsProductParameter[];
// 产品链接
links?: CmsProductUrl[];
// 插件入口
path?: string;
// 标签
tag?: string;
// 菜单ID
menuId?: number;
}
/**
* 产品搜索条件
*/
export interface CmsProductParam extends PageParam {
productId?: number;
status?: number;
keywords?: string;
}