import { eLevel } from "./level";
import { eNewRoleRelatedToBackEnd, eRole } from "./role";
import { eUserStatus } from "./user";

enum bank{
  '一级分行',
  '二级分行',
  '一级支行',
  '二级支行',
}
enum role{
  '管理岗',
  '客户经理'
}

enum state{
  '启用中/在岗',
  '启用中/不在岗',
  '已禁用',
}

interface staff{
  key:string,
  eRole?:eRole
  time:string,
  name:string,
  role:string,
  account:string,
  bank:string,
  firstLevel_branch:string,
  secondary_branch?:string,
  firstLevel_sub_branch?:string,
  secondary_sub_branch?:string,
  location:string,
  actionUid:string,
  state:string
}

export interface iStaffQueryResItem{
  bank_name: string
  created_at: number
  first_branch: string
  first_sub_branch: string
  level: eLevel
  location: string
  operator_name: string
  operator_uuid: string
  phone: string
  role: eNewRoleRelatedToBackEnd
  second_branch: string
  second_sub_branch: string
  status: eUserStatus
  user_name: string
  uuid: string
}

export{
  bank,
  role,
  staff,
  state
}