继续完善购物逻辑闭环,consumer模块完成度75%

This commit is contained in:
2026-01-26 17:15:51 +08:00
parent be90f1213b
commit f2f208f258
21 changed files with 2516 additions and 217 deletions

View File

@@ -433,3 +433,29 @@ export interface MockData {
coupons: CouponTemplateType[]
products: ProductType[]
}
// 用户基础信息类型 (兼容 pages/user/types.uts)
export type UserProfile = {
id?: string;
username: string;
email: string;
gender?: string;
birthday?: string;
height_cm?: number;
weight_kg?: number;
bio?: string;
avatar_url?: string;
preferred_language?: string;
role?: string;
school_id?: string;
grade_id?: string;
class_id?: string;
created_at?: string;
updated_at?: string;
}
export type UserStats = {
trainings: number;
points: number;
streak: number;
}