You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
894 B

4 years ago
type ObjectMap<Key extends string | number | symbol = any, Value = any> = {
[key in Key]: Value;
};
declare namespace defs {
export class ResultVO<T0 = any> {
/** code */
code?: number;
/** 数据 */
4 years ago
data?: string;
4 years ago
/** msg */
msg?: string;
}
}
declare namespace API {
/**
*
*/
export namespace user {
/**
*
4 years ago
* /api/user/login
4 years ago
*/
4 years ago
export namespace loginByWechat {
4 years ago
class Params {
/** 手机号 */
4 years ago
phoneNumber?: string;
/** 临时TOKEN */
tempToken?: string;
/** weChatCode */
weChatCode: string;
4 years ago
}
4 years ago
export type ResponseType = Promise<defs.ResultVO<string>>;
4 years ago
export const URL: string;
export function request(
params: Params,
options?: WechatMiniprogram.RequestOption,
): ResponseType;
}
}
}