import type { MenuTreeNode } from './role'

export interface LoginReq {
  factoryCode: string
  account: string
  password: string
}

export interface LoginResp {
  data: Root
  message: string
  code: number
}

export interface Root {
  sysUser: SysUser
  token: string
  sysMenus: MenuTreeNode[]
}

export interface SysUser {
  id: number
  account: string
  password: string
  supperMark: number
  factoryId: number
  factoryCode: string
  status: number
  factory: Factory
  baseExternalAccountTypes?: []
}

export interface Factory {
  id: number
  bianma: string
  title: string
  typeId: number
  type?: number
  name: string
  mobile: string
  goodsNumber: number
  authorizeNumber: number
  status: number
  dropShipping?: boolean
}
