UNPKG

node-web-mvc

Version:
21 lines (20 loc) 899 B
import BasicMapping from './BasicMapping'; declare class PatchMapping extends BasicMapping { } /** * 配置一个Patch类型的请求映射 * 例如: * * @RequestMapping('/user/') * @RequestMapping(['/user','/hello'],'GET') * @RequestMapping('/user','POST','application/json') * RequestMapping({ value:'/user',method:'POST',produces:'application/json',consumes:'' }) * @param {String/Object/Array} value 可以为对象,或者为path的字符串数组 '/user' ['/user' ] { value:'xxx',method:'' } */ declare const _default: { (options: string | string[] | import("../Target").CreateOptions<typeof PatchMapping>): MethodDecorator; (target: { [x: string]: any; }, propertyKey: string, descriptor: TypedPropertyDescriptor<any>): any; } & import("../annotation/type").LinkAnnotationType<typeof PatchMapping> & typeof PatchMapping; export default _default;