UNPKG

ts-api-core

Version:

Nodejs api framework core

13 lines (12 loc) 691 B
import { RequestContext } from '../context/request.context'; import { BaseRouteRawWrapper } from './base.route.raw.wrapper'; import { WrapperResult } from './base.wrapper'; /** * 动态执行请求数据加工基类 */ export declare class BaseRouteExecuteWrapper extends BaseRouteRawWrapper { protected readonly executeCallBack?: ((context: RequestContext) => Promise<WrapperResult<any | undefined>>) | undefined; constructor(context: RequestContext, executeCallBack?: ((context: RequestContext) => Promise<WrapperResult<any | undefined>>) | undefined); private readonly TAG; executeRequest(context: RequestContext): Promise<WrapperResult<any | undefined>>; }