working on words

This commit is contained in:
2024-12-29 12:24:32 +01:00
parent 856dfbd119
commit 4d22905ef9
8 changed files with 166 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
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) {}
}