@hopeio/utils
Version:
javascript utils
41 lines (40 loc) • 1.37 kB
TypeScript
export interface PcWebLoginData {
needSmsCode: string;
}
export declare function PcWebLogin(phone: string, password: string): Promise<PcWebLoginData>;
export interface PcLoginVerifyCodeData {
access_token: string;
refresh_token: string;
expires_in: number;
}
export declare function PcLoginVerifyCode(phone: string, password: string, messageCode: string): Promise<PcLoginVerifyCodeData>;
export interface AppQueryUserData {
userId: string;
headUrl: string;
userName: string;
sex: string;
birthday: string;
isModify: string;
isHeadModify: string;
isSetPassword: string;
registerTime: string;
}
export declare function AppQueryUser(): Promise<AppQueryUserData>;
export declare function AppQueryUser2(): Promise<AppQueryUserData>;
export interface AppRefreshTokenData {
access_token: string;
token_type: string;
refresh_token: string;
expires_in: number;
scope: string;
}
export declare function AppRefreshToken(): Promise<AppRefreshTokenData>;
export declare function sendMessageCodeBase(phone: string): Promise<void>;
export interface AppLoginByMobileData {
access_token: string;
isSetIdInfo: string;
refresh_token: string;
expires_in: number;
is_new_register: string;
}
export declare function AppLoginByMobile(phone: string, smsCode: string): Promise<AppLoginByMobileData>;