You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.3 KiB
71 lines
1.3 KiB
import type { PageParam } from '@/api';
|
|
import type {ShopOrderInfo} from "~/api/shop/shopOrderInfo/model";
|
|
import type {Company} from "~/api/system/company/model";
|
|
|
|
/**
|
|
* 购物车
|
|
*/
|
|
export interface ShopCart {
|
|
// 购物车表ID
|
|
id?: string;
|
|
// 类型 0商城 1外卖
|
|
type?: number;
|
|
// 唯一标识
|
|
code?: string;
|
|
// 商品ID
|
|
productId?: string;
|
|
// 商品规格
|
|
spec?: string;
|
|
// 商品价格
|
|
price?: string;
|
|
// 商品数量
|
|
cartNum?: number;
|
|
// 单商品合计
|
|
totalPrice?: string;
|
|
// 0 = 未购买 1 = 已购买
|
|
isPay?: string;
|
|
// 是否为立即购买
|
|
isNew?: string;
|
|
// 拼团id
|
|
combinationId?: number;
|
|
// 秒杀产品ID
|
|
seckillId?: number;
|
|
// 砍价id
|
|
bargainId?: number;
|
|
// 是否选中
|
|
selected?: string;
|
|
// 商户ID
|
|
merchantId?: string;
|
|
// 用户ID
|
|
userId?: string;
|
|
// 租户id
|
|
tenantId?: number;
|
|
// 创建时间
|
|
createTime?: string;
|
|
// 修改时间
|
|
updateTime?: string;
|
|
// 商品封面图
|
|
image?: string;
|
|
}
|
|
|
|
/**
|
|
* 购物车搜索条件
|
|
*/
|
|
export interface ShopCartParam extends PageParam {
|
|
id?: number;
|
|
keywords?: string;
|
|
}
|
|
|
|
export interface MyCart {
|
|
appName?: string,
|
|
domain?: string,
|
|
adminUrl?: string;
|
|
num?: number,
|
|
type?: number;
|
|
payType?: number,
|
|
payPrice?: number,
|
|
month?: number,
|
|
comments?: string,
|
|
list?: Company[],
|
|
totalPrice?: number
|
|
}
|