chore : eslint
This commit is contained in:
+12
-11
@@ -1,30 +1,31 @@
|
||||
import { WordResponseDTO } from './dto/wordresponse.dto';
|
||||
import { WordResponseDTO } from "./dto/wordresponse.dto";
|
||||
import type { ConceptEvent } from "./events";
|
||||
|
||||
export class WordCreateEvent {
|
||||
type = 'create';
|
||||
export class WordCreateEvent implements ConceptEvent {
|
||||
type = "create";
|
||||
constructor(public word: WordResponseDTO) {
|
||||
this.word = new WordResponseDTO(word);
|
||||
}
|
||||
}
|
||||
|
||||
export class WordEditEvent {
|
||||
type = 'edit';
|
||||
export class WordEditEvent implements ConceptEvent {
|
||||
type = "edit";
|
||||
constructor(public word: WordResponseDTO) {
|
||||
this.word = new WordResponseDTO(word);
|
||||
}
|
||||
}
|
||||
|
||||
export class WordDeleteEvent {
|
||||
type = 'delete';
|
||||
export class WordDeleteEvent implements ConceptEvent {
|
||||
type = "delete";
|
||||
constructor(public id: number) {}
|
||||
}
|
||||
|
||||
export class WordEnableEvent {
|
||||
type = 'enable';
|
||||
export class WordEnableEvent implements ConceptEvent {
|
||||
type = "enable";
|
||||
constructor(public id: number) {}
|
||||
}
|
||||
|
||||
export class WordDisableEvent {
|
||||
type = 'disable';
|
||||
export class WordDisableEvent implements ConceptEvent {
|
||||
type = "disable";
|
||||
constructor(public id: number) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user