Files
webapp-back/events/word.events.ts
T
2024-12-29 12:04:19 +01:00

27 lines
518 B
TypeScript

import { WordResponseDTO } from './dto/wordresponse.dto';
export class WordCreateEvent {
type: 'create';
constructor(public word: WordResponseDTO) {}
}
export class WordEditEvent {
type: 'edit';
constructor(public word: WordResponseDTO) {}
}
export class WordDeleteEvent {
type: 'delete';
constructor(public id: number) {}
}
export class WordEnableEvent {
type: 'enable';
constructor(public id: number) {}
}
export class WordDisableEvent {
type: 'disable';
constructor(public id: number) {}
}