UNPKG

@63pokupki/nodejs-common

Version:
25 lines (24 loc) 767 B
import { ErrorSys } from '@63pokupki/components/lib'; import { ResponseSys } from './ResponseSys'; import { UserSys } from './UserSys'; import { AccessSys } from './AccessSys'; import { P63Context } from './P63Context'; /** Базовый контроллер */ export default class BaseCtrl { ctx: P63Context; errorSys: ErrorSys; userSys: UserSys; responseSys: ResponseSys; protected resp: any; accessSys: AccessSys; /** init */ constructor(ctx: P63Context); /** init */ protected fClassName(): string; /** * * @param msg - Сообщение * @param cbAction - Анонимная функция для вызова действия */ faAction(msg: string, cbAction: Function): Promise<void>; }