@addapptables/microservice
Version:
addapptables microservice
13 lines (10 loc) • 367 B
text/typescript
import { ICommand } from './interfaces/commands/command.interface';
import { ICommandDto } from './interfaces/commands/command-dto-interface';
export abstract class Command<T extends ICommandDto> implements ICommand<T> {
abstract context: string;
abstract action: string;
constructor(
readonly data: T,
readonly cid?: string
) { }
}