Template
working on words
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user