params.d.ts 4.7 KB
// 提交身份认证参数类型
export interface ApplyAuthType {
  realname: string // 姓名
  idNumber: string // 身份证号
  sex: string // 性别 0 未知 1 男 2 女
  department: any // 科室 [多选]
  career: any // 职称 [单选]
  hospital?: any
  school: string // 学校
  speciality: string // 专业
  code: string // 职业编码
  introduction: string // 个人简介
  qualifications: string // 资质证明 [最多三张]
  file: any[]
  selectDepartment?: string
  selectCareer?: string
  selectHospital?: string
  doctorUserType?: string[]
  [property: string]: any;

}

// 更改接诊状态
export interface ChangeStateType {
  state: number // 0 暂不接诊 1 在线坐诊
  textState: number // 图文问诊 0 关闭 1 开启
  videoState: number // 视频问诊 0 关闭 1 开启
  phoneState: number // 电话问诊状态 0-关闭 1-开启
  startTime: string // 坐诊开启时间【时分】
  endTime: string // 坐诊结束时间【时分】
}

// 修改个人资料
export interface ChangeUserInfoType {
  avatar: string
  nickname: string
  sex: number
  introduction: string // 个人简介
  department: any // 科室
  hospital: any // 坐诊医院
}


// 消息通知
export interface MessageListParamsType {
  type: number // 类型1=系统通知2=用户反馈
  pageNo: number // 页数
  pageSize?: number // 条数
}

export interface CommentListParamsType {
  type: number // 类型1=待回复2=已回复
  pageNo: number // 页数
}

export interface CommentReceiveType {
  id: string
  content: string
}

// 录入快递单号
export interface Prescription_expressType {
  id: string // 处方订单id
  express: string // 快递公司
  expressNo: string // 快递单号
}

// 提现
export interface Add_withdrawType {
  bank_id?: string // 银行卡id
  amount?: number // 提现金额
  type?: string | number
}

export interface BindUserCardType {
  wxUserName?: string
  aliUserName?: string
  doctorRealName?: string
  doctorWXRealName?: string
  code?: string
  [property: string]: any;
}

// 续方订单审核
export interface ExamineRenewOrderType {
  id: string // 续方订单id
  state: string // 审核状态1=通过2=驳回
  reason: string // 审核驳回原因【state为2时为必填】
}

export interface SendPrescriptionType {
  /**
   * 处方药
   */
  drugList: DrugList[];
  /**
   * 问诊订单id
   */
  id: string;
  /**
   * 处方单金额
   */
  prescriptionAmount: number;
  /**
   * 处方单文件
   */
  prescriptionFile?: string;
  /**
   * 问诊病情描述
   */
  prescriptionForm: string;
  [property: string]: any;
}

export interface DrugList {
  /**
   * 价格
   */
  amount: number;
  /**
   * 说明
   */
  des: string;
  /**
   * 药物名称
   */
  name: string;
  /**
   * 数量
   */
  num: number;
  [property: string]: any;
}

// 添加银行卡信息
export interface AddBankCardInfoType {
  /**
   * 卡类型
   */
  bank: string;
  /**
   * 银行卡号
   */
  bankNumber: string;
  /**
   * 身份证号
   */
  idNumber: string;
  /**
   * 姓名
   */
  name: string;
  /**
   * 预留号码
   */
  phone: string;
  /**
   * 是否默认0=否1=是
   */
  isDefault: number;
  [property: string]: any;
}

export interface SelectBankCardType {
  id: string // 银行卡id 
  bank: string // 卡类型
  icon: string // 卡图标
  bankNumber: string // 银行卡号
}

// 意见反馈
export interface FeedBackParamsType {
  type: string; // 反馈类型
  content: string; // 反馈内容
  image: string; // 反馈图片
  [property: string]: any;
}

export interface EditPhoneType {
  /**
     * 手机验证码
     */
  code: string | number;
  /**
   * 更换后手机号
   */
  phone: string;
  [property: string]: any;
}

export interface RecordsInvitePaper {
  /**
   * 海报图片
   */
  image: string;
  [property: string]: any;
}

export interface ChangePwdType {
  /**
   * 验证码
   */
  code: string;
  /**
   * 密码
   */
  password: string;
  /**
   * 手机号
   */
  phone: string;
  /**
   * 重复密码
   */
  repassword: string;
  [property: string]: any;
}

export interface doctorLoginWithPwdType {
  username: string
  password: string
  captcha: string
  checkKey: string | number
  cid?: string
  [property: string]: any;
}

export interface doctorPhoneEasyLoginType {
  access_token: string
  openid: string
  [property: string]: any;
}

export interface DiaLogEventType {
  conversationName: string | number;
  consultationWay: string | number; // 订单类型
  orderId: string | number; // 订单id
}

export interface IcomeEventType {
  flag?: string
}

export interface AddAccountEventType {
  account: string
  flag: string
  nameFlag: string
  title: string
  url: string
  [property: string]: any;
}