Files
xinlong-shop-taro/src_bak/api/shop/shopCart/model/index.ts
赵忠林 1fa58040f3 feat(user): 新增收货地址管理及售后申请页面
- 新增地址类型定义,增强前端地址数据结构
- 新增地址编辑页面,支持地址智能识别和定位选点功能
- 地址编辑支持省市区选择及默认地址设置
- 新增地址列表页面,支持地址展示、删除、编辑和选择功能
- 实现售后申请页面,支持选择售后类型和退款原因
- 售后申请支持商品选择、退款金额计算和凭证上传
- 新增售后详情页面,支持售后状态展示及申请取消
- 优化页面加载和用户交互体验,增加错误提示和权限处理
2026-07-01 12:11:56 +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;
}