/*
 * @Author: your name
 * @Date: 2021-11-11 11:23:56
 * @LastEditTime: 2022-06-07 09:44:50
 * @LastEditors: code4eat awesomedema@gmail.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /KC-MiddlePlatform/src/service/api.d.ts
 */

declare namespace LoginApi {
  export type LoginParams = {
    account: string;
    password: string;
    // remember:boolean,
    hospSign: string;
  };

  export type CurrentUserData = {
    token: string;
    name: string | number;
    avatar?: string;
    userid?: string | number;
    [propsName: string]: any;
  };

  export type LoginResult = {
    name: string;
    token: string;
    [propsName: string]: any;
  };

  export type EditUserInfoType = {
    account?: string;
    hospId?: number;
    hospitalStatus?: number;
    id?: number;
    name?: string;
    password?: string;
  };
}

declare namespace userRelationInfo {
  export type subHospItem = {};

  export type OwnAppsItem = {
    id: number;
    name: string;
    icon?: string;
    url?: string;
    path: string;
  };
}
