/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  username: string;
  password: string;
}

export interface RoleInfo {
  roleName: string;
  value: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  info: GetUserInfoModel;
  token: string;
  permissions: RoleInfo;
}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  info: UserInfo;
  permissions: RoleInfo[];
}
export interface UserInfo {
  id: string | number;
  username: string;
  name: string;
  avatar: string;
  created_at: string;
  updated_at: string;
  department: string;
  phone: string | number;
  status: string | number;
  is_enable: string | number;
}
