koa-springboot
Version:
springboot-like koa
22 lines (21 loc) • 1.37 kB
TypeScript
import { HttpStatus } from './constants';
export declare function ControllerScan(...paths: Array<string>): any;
export declare function ModelScan(...paths: Array<string>): any;
export declare function KoaApplication<T extends {
new (...args: any[]): {};
}>(constructor: T): any;
export declare function Controller<T extends {
new (...args: any[]): {};
}>(constructor: T): any;
export declare function RequestMapping(value: any, method?: string, rMethod?: string): any;
export declare function GetMapping(value?: any, method?: string): any;
export declare function PostMapping(value?: any, method?: string): any;
export declare function PutMapping(value?: any, method?: string): any;
export declare function DeleteMapping(value?: any, method?: string): any;
export declare function PatchMapping(value?: any, method?: string): any;
export declare function PathVariable(name: string, required?: boolean, defaultValue?: any): any;
export declare function RequestParam(name: string, required?: boolean, defaultValue?: any): any;
export declare function RequestBody(target: any, propertyKey: string | symbol, parameterIndex: number): any;
export declare function ResponseBody(target: any, action?: string): any;
export declare function ResponseStatus(responseStatus: HttpStatus): (target: any, action: string) => void;
export declare function Model(name: string): any;