feat: concept events

This commit is contained in:
2024-12-31 14:15:38 +01:00
parent fc3f0e1677
commit 1473c5c132
+30
View File
@@ -0,0 +1,30 @@
import { ConceptResponseDTO } from './dto/conceptresponse.dto';
export class ConceptCreateEvent {
type = 'create';
constructor(public concept: ConceptResponseDTO) {
this.concept = new ConceptResponseDTO(concept);
}
}
export class ConceptEditEvent {
type = 'edit';
constructor(public concept: ConceptResponseDTO) {
this.concept = new ConceptResponseDTO(concept);
}
}
export class ConceptDeleteEvent {
type = 'delete';
constructor(public id: number) {}
}
export class ConceptEnableEvent {
type = 'enable';
constructor(public id: number) {}
}
export class ConceptDisableEvent {
type = 'disable';
constructor(public id: number) {}
}