export interface User {
  id: number
  username: string
  realName?: string
  email?: string
  phone?: string
  avatar?: string
  status: number // 0-正常 1-禁用
  deptId?: number
  deptName?: string
  employeeType?: string
  userType?: string // SYSTEM / ROLE
  roleIds?: number[]
  password?: string
  wecomUserId?: string
  wecomUserName?: string
  wecomRemindEnabled?: number
  createTime?: string
}

export interface Role {
  id: number
  roleCode: string
  roleName: string
  roleScope?: string
  parentId?: number
  deptId?: number
  deptName?: string
  status: number // 0-禁用 1-正常
  createTime?: string
}

export interface Dept {
  id: number
  parentId: number
  name: string
  deptCode?: string
  leader?: string
  phone?: string
  email?: string
  sort: number
  status: number // 0-正常 1-禁用
  children?: Dept[]
}

export interface LoginData {
  username: string
  password: string
}

export interface LoginResult {
  token: string
  tokenType: string
  expiresIn: number
}
