/** * @desc * * @使用场景 * * @coder.yang2010@gmail.com * @Date 2020/5/12 **/ import Method from "./method"; import { SchemaProps } from "../../../typings/api"; export default class ApiGroup { options: { name: string; serverInfo: any; }; apis: Method[]; definitions: { [name: string]: SchemaProps; }; constructor(options: { name: string; serverInfo: any; }); get name(): string; get serverInfo(): any; addApis(apis: Method[]): void; /** * 添加一个api * @param api */ addApi(api: Method): void; /** * 是否已经存在方法; * @param methodName */ isMethodNameExist(methodName: string): boolean; }