Files
xinlong-shop-taro/src/api/shop/shopCart/model/index.ts
赵忠林 f3886664f7 fix(api): 替换所有接口请求的域名为 guilixu-api.websoft.top
- 将获取 STS Token 的接口地址由 paopao-api 改为 guilixu-api
- 更新图片上传接口地址为新的 guilixu-api 域名
- 修改用户推广页面中邀请码链接和二维码接口的域名
- 更改注册页微信登录接口请求的域名为 guilixu-api
2026-06-16 17:15:59 +08:00

75 lines
1.2 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';
/**
* 购物车项
*/
export interface ShopCart {
// 主键ID
id?: number;
// 用户ID
userId?: number;
// 商品ID
goodsId?: number;
// SKU ID
skuId?: number;
// 数量
num?: number;
// 商品名称
goodsName?: string;
// 商品图片
goodsImage?: string;
// SKU价格
skuPrice?: string;
// SKU规格
skuSpec?: string;
// 库存
stock?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 更新时间
updateTime?: string;
}
/**
* 购物车项扩展(包含选中状态,用于前端展示)
*/
export interface ShopCartItem extends ShopCart {
// 是否选中
checked?: boolean;
// 商品详情
product?: any;
// SKU详情
sku?: any;
}
/**
* 添加到购物车参数
*/
export interface AddToCartParam {
// 商品ID
goodsId: number;
// SKU ID单规格可不传
skuId?: number;
// 数量
num: number;
}
/**
* 更新购物车数量参数
*/
export interface UpdateCartNumParam {
// 购物车ID
id: number;
// 数量
num: number;
}
/**
* 购物车搜索条件
*/
export interface ShopCartParam extends PageParam {
userId?: number;
}