IntelliClass_FE/types/user.ts
Timothy Yin b05f954923
feat: add authentication requirements to course preparation and resources pages
fix: update home page background image and remove unnecessary redirect code

chore: update pnpm lock file with new dependencies for auto-animate and svg spinners

delete: remove unused images from public directory

refactor: modify course and user types for better clarity and structure

feat: implement course API with CRUD operations and teacher team management

feat: create user authentication page with login functionality and validation

feat: add login state management with Pinia for user session handling

style: create reusable UI components for cards and tabs

chore: implement HTTP utility for API requests with error handling
2025-04-06 00:25:20 +08:00

72 lines
1.3 KiB
TypeScript

export type LoginType = "admin" | "teacher" | "student";
export interface IUser {
createBy: number;
createTime: Date;
updateBy: string;
updateTime: string;
remark: string;
userId: number;
deptId: number;
userName: string;
nickName: string;
email: string;
phonenumber: string;
sex: string;
avatar: string | null;
password: string;
status: string;
delFlag: string;
loginIp: string;
loginDate: Date;
dept: IUserDept;
roles: IUserRole[];
roleIds: null;
postIds: null;
roleId: null;
loginType: LoginType;
admin: boolean;
}
export interface IUserDept {
createBy: null;
createTime: null;
updateBy: null;
updateTime: null;
remark: null;
deptId: number;
parentId: number;
ancestors: string;
deptName: string;
orderNum: number;
leader: string;
phone: null;
email: null;
status: string;
delFlag: null;
parentName: null;
children?: [];
}
export interface IUserRole {
createBy: null;
createTime: null;
updateBy: null;
updateTime: null;
remark: null;
roleId: number;
roleName: string;
roleKey: string;
roleSort: number;
dataScope: string;
menuCheckStrictly: boolean;
deptCheckStrictly: boolean;
status: string;
delFlag: null;
flag: boolean;
menuIds: null;
deptIds: null;
permissions: null;
admin: boolean;
}