# multicart **Repository Path**: tumubujingongdi/multicart ## Basic Information - **Project Name**: multicart - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-05-12 - **Last Updated**: 2024-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Mulitikart 服装电商演示项目 ## 项目目标 ## 系统用例 根据角色分析用例, ### 管理员 ### 消费者 ```ts /** * 消费用户 * * nickname 昵称 * username * password * avatar * mobile * birthday 生日 * */ interface Customer { nickname: string; username: string; avatar: string; password: string; mobile: string; birthday: string; } /** * 地址 * * city 省市区 * contact 联系人 * mobile 电话 * detail 详细地址 * isDefault 是否默认地址 */ interface Address { city: string; contact: string; mobile: string; detail: string; isDefault: boolean; } /** * 衣服尺寸 */ type Size = "S" | "M" | "L" | "XL" | "XXL" | "3XL"; /** * 商品分类 * * name 名称 * picture */ interface Category { name: string; picture: string; cover: string; parent: Category; } /** * 商品颜色 * * name 名称 * */ interface Color { name: string; color: string; production: Production; } /** * 产品 * * name 名称 * description 简述 * ratings 评级 * brand 品牌 * sizes 尺寸 -> S,M,L * colors 颜色 * price 价格 * discount 折扣 * category 分类 */ interface Production { name: string; description: string; ratings: number; brand: string; sizes: Size[]; colors: Color[]; price: decimal; discount: number; category: Category; } /** * 优惠卷 * * num 编号 * */ interface Coupon { num: string; amount: number; created_at: string; } /** * 客户订单 * * num 编号 * created_at 创建时间 * delivery_num 配送单号 * delivery_at 配送时间 * * */ interface Orders { num: string; created_at: string; total: number; savings: number; coupon: Coupon; delivery_num: string; delivery_at: string; delivery_company: string; took_at: string; address: Address; pay: string; } /** * 订单明细 * * production: 商品 * size: 尺寸 * quantity: 数量 * discount: 折扣 * price: 单价 * orders: 所属订单 */ interface OrderDetails { production: Production; size: Size; quantity: number; price: number; discount: number; orders: Orders; } ``` ## 路由以及功能 { path: "/customer/profile", method: "GET", result: { success: boolean, object: Customer } } { path: "/customer/profile", method: "PUT", data: { nickname: string; username: string; avatar: string; password: string; mobile: string; birthday: string; }, result: { } }