Initial commit of akmon project
This commit is contained in:
31
pages/user/types.uts
Normal file
31
pages/user/types.uts
Normal file
@@ -0,0 +1,31 @@
|
||||
// 用户基础信息类型
|
||||
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; // 所属学校ID
|
||||
grade_id?: string; // 所属年级ID
|
||||
class_id?: string; // 所属班级ID
|
||||
}
|
||||
|
||||
// 语言选项类型 - 对应 ak_languages 表
|
||||
export type LanguageOption = {
|
||||
id: string; // UUID
|
||||
code: string; // 语言代码,如 'zh-CN', 'en-US'
|
||||
name: string; // 英文名称
|
||||
native_name: string; // 本地语言名称
|
||||
}
|
||||
|
||||
export type UserStats = {
|
||||
trainings: number;
|
||||
points: number;
|
||||
streak: number;
|
||||
}
|
||||
Reference in New Issue
Block a user