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.

47 lines
894 B

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;
/** 数据 */
data?: string;
/** msg */
msg?: string;
}
}
declare namespace API {
/**
* 用户管理
*/
export namespace user {
/**
* 获取用户列表
* /api/user/login
*/
export namespace loginByWechat {
class Params {
/** 手机号 */
phoneNumber?: string;
/** 临时TOKEN */
tempToken?: string;
/** weChatCode */
weChatCode: string;
}
export type ResponseType = Promise<defs.ResultVO<string>>;
export const URL: string;
export function request(
params: Params,
options?: WechatMiniprogram.RequestOption,
): ResponseType;
}
}
}