declare module 'yohoApi' { export type PlainObject<T = any> = { [key: string]: T }; type ApiMap = { [key: string]: UrlParam }; interface UrlParam { api: string; // 接口方法名 ufo: boolean; // 是否是ufo接口 service: boolean; // service接口 path: string; // 接口路由 auth?: boolean; // 接口是否需要登陆,ture时请求参数会自动添加uid params?: PlainObject; // 仅用于参数校验,不会合并到请求参数中 } }