springboot-express
Version:
express-spring-boot
20 lines (19 loc) • 1.24 kB
TypeScript
import { Request, Response } from "express";
export declare module Spring {
enum AUTH_LEVEL {
ALL = 0,
ADMIN = 1,
OPERATOR = 2,
SELLER = 4,
CUSTOMER = 8
}
function getHandler(target: Object): Object;
function userControlHandler(handler: Function, level: Spring.AUTH_LEVEL, target?: Object): (req: Request, res: Response) => void;
function GetMapping(route: string, level?: Spring.AUTH_LEVEL): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
function PostMapping(route: string, level?: Spring.AUTH_LEVEL): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
function PutMapping(route: string, level?: Spring.AUTH_LEVEL): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
function DeleteMapping(route: string, level?: Spring.AUTH_LEVEL): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
function HeadMapping(route: string, level?: Spring.AUTH_LEVEL): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
function Configuration(path: string): (constructor: Function) => void;
function Instance(constructor: Function): void;
}