feat: concept events
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user