import { UserState } 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: UserState;
  userInfo: any;
  token: string;
}
