UNPKG

node-web-mvc

Version:
37 lines (36 loc) 1.11 kB
import { HttpMethodKeys } from '../../servlets/http/HttpMethod'; declare class ApiOperation { /** * 具体接口方法的描述 */ value?: string; /** * 接口详细描述 */ notes?: string; /** * 当前接口方法的请求类型 * 可选值有:"GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS" and "PATCH" */ httpMethod?: HttpMethodKeys; tags?: string[]; /** * 返回http结果类型 */ code?: number; consumes?: string[]; } /** * 用于标注接口类下的接口方法 */ declare const _default: { (target: Function): any; (options: string | import("../../servlets/annotations/Target").CreateOptions<typeof ApiOperation>): { (target: Function): any; (target: Object, name: string, descriptor: TypedPropertyDescriptor<any>): any; }; (target: { [x: string]: any; }, propertyKey: string, descriptor: TypedPropertyDescriptor<any>): any; } & import("../../servlets/annotations/annotation/type").LinkAnnotationType<typeof ApiOperation> & typeof ApiOperation; export default _default;