import { UserBean } from '@/store/modules/user/types';

export interface LoginParams {
  // phone: string;
  code: string;
  userInfo: any;
  referrerUserId: string;
}

export interface RegisterParams {
  unionId: string,
  openId: string,
  maOpenId: string,
  image: string,
  nickName: string,
  telephone: string,
  birthday: string,
  companyId: string,
  creatorId: string,
  gender: number
}

export interface LoginByCodeParams {
  code: string;
}

export interface LoginResult {

  sessionKey: string;
  user: UserBean;
  userInfo: any;
  token: string;
}

export interface IntegralBean {
  id: string;
  createtime: string;
  exsitvalue: number;
  remark: string;
  type: number;
  value: number;
}

export interface CouponBean {
  companyId: string;
  couponsId: string;
  createTime: string;
  creatorId: number;
  creatorName: string;
  dayType: number;
  endTime: string;
  id: string;
  images: string;
  imcomingId: string;
  memberId: string;
  memberName: string;
  name: string;
  notice: number;
  offsetPrice: number;
  orderId: null;
  periodDay: number;
  reduce: number;
  remark: string;
  startTime: string;
  status: number;
  strategyType: string;
  telephone: string;
  threshold: number;
  type: number;
  userTime: string;

  checked: boolean;
}

export interface TerminalBean {
  applyId: string;
  bindId: string;
  bindName: string;
  bindStatus: number;
  company: string;
  companyId: string;
  companyName: string;
  contact: string;
  createTime: string;
  creatorId: string;
  creatorName: string;
  deviceRole: string;
  employee: string;
  expireTime: string;
  id: string;
  managerPermission: string;
  name: string;
  permission: {
    deletablePer: boolean,
    profitPer: boolean,
    exportTypes: any[],
    checkoutPer: boolean,
    showPhoneNumber: boolean,
    storePer: any[]
  };
  checkoutPer: boolean;
  deletablePer: boolean;
  exportPer: boolean;
  exportTypes: any[];
  profitPer: boolean;
  showPhoneNumber: boolean;
  storePer: any[];
  signDate: string;
  status: number;
  store: string;
  storeId: string;
  storeName: string;
  storeOrder: number;
  terminalKey: string;
  terminalSn: string;
  token: string;
  type: number;
}
