import type { UserInfo } from '/#/store';
/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  userName: string;
  userPassword: string;
  captcha: string;
}

export interface RoleInfo {
  userID?: string;
  roleName: string;
  value: string;
  brandList: string[] | any;
  canShow: string;
  createTime: number;
  createUserId: number;
  deptExpirationDate: number;
  deptId: number;
  deptManagerPhoneNum: string;
  deptName: string;
  email: string;
  fdkkPassword: string;
  fdkkUser: string;
  isPlatformStreamer: false;
  mobile: string;
  parentDeptId: number;
  parentDeptName: number;
  password: string;
  roleId: number;
  roleIdList: any[];
  roleList: number;
  status: number;
  userId: number;
  username: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  id?: string | number;
  token: string;
  role?: RoleInfo;
  user: RoleInfo;
}
export type GetUserInfoModel = UserInfo;

export interface updateUserInfoPasswordParam {
  id: string | number;
  password?: string;
  newPassword?: string;
}
/**
 * @description: Get user information return value
 */
// export interface GetUserInfoModel {
//   roles: RoleInfo[];
//   // 用户id
//   id: string | number;

//   // userId: string | number;
//   // 用户名
//   userName: string;
//   // 真实名字
//   realName: string;
//   // 头像
//   avatar: string;
//   // 介绍
//   desc?: string;
// }
