node-web-mvc
Version:
node spring mvc
27 lines (26 loc) • 793 B
TypeScript
/**
* @module ResponseStatus
* @description 标注指定action的返回状态与信息
*/
import RuntimeAnnotation from './annotation/RuntimeAnnotation';
declare class ResponseStatus {
/**
* 返回状态编码
*/
code: number;
/**
* 返回状态消息
*/
reason: string;
constructor(meta: RuntimeAnnotation, options: ResponseStatus);
}
/**
* 标注指定类为一个rest 风格的controller
*/
declare const _default: {
(options: import("./Target").CreateOptions<typeof ResponseStatus>): MethodDecorator;
(target: {
[x: string]: any;
}, propertyKey: string, descriptor: TypedPropertyDescriptor<any>): any;
} & import("./annotation/type").LinkAnnotationType<typeof ResponseStatus> & typeof ResponseStatus;
export default _default;