export enum AuthCodeType {
    REGISTER = 1,
    FORGOTTEN_PASSWORD = 2,
    PHONE_CHANGING = 3,
    WECHAT_LAUNCH = 4,
    PHONE_LOGIN = 5,
    RESET_PASSWORD = 6,
    SUPPLIER_AUTH = 7,
    DESIGNER_MANAGE = 8,
    PLM_MANAGE = 9
}

export interface UserAuthInfo {
    username: string;
    password: string;
}

export interface AuthCodeRequestInfo {
    phone: string;
    type: AuthCodeType;
}

export interface PhoneAuthInfo {
    phone: string;
    code: string;
}

export interface WechatPhoneBindingInfo extends PhoneAuthInfo {
    openId: string;
}

export interface PhonePasswordInfo extends PhoneAuthInfo {
    password: string;
}

export class WechatTokenWrapper {
    token?: string;
    openId = '';
    type = '';
    message = '';
}
