export type Method = 'get' | 'delete' | 'head' | 'options' | 'post' | 'put' | 'patch' | 'purge' | 'link' | 'unlink'; export type MediaType = 'application/json'; export interface RequestParam { /** 类型名称 */ typeName: string; required: boolean; } export interface API { path: string; name: string; method: Method; operationId: string; /** api 分类 */ tags: string[]; description: string; /** url 上参数对应的类型名称 */ param?: string; query?: RequestParam; body?: RequestParam; /** 返回值类型名称 */ response?: string; }