generated from legonzaur/webapp-dto
Remove concept
This commit is contained in:
@@ -1,30 +0,0 @@
|
|||||||
import { ConceptResponseDTO } from "./dto/conceptresponse.dto";
|
|
||||||
import type { ConceptEvent } from "./events";
|
|
||||||
export class ConceptCreateEvent implements ConceptEvent {
|
|
||||||
type = "create";
|
|
||||||
constructor(public concept: ConceptResponseDTO) {
|
|
||||||
this.concept = new ConceptResponseDTO(concept);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ConceptEditEvent implements ConceptEvent {
|
|
||||||
type = "edit";
|
|
||||||
constructor(public concept: ConceptResponseDTO) {
|
|
||||||
this.concept = new ConceptResponseDTO(concept);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ConceptDeleteEvent implements ConceptEvent {
|
|
||||||
type = "delete";
|
|
||||||
constructor(public id: number) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ConceptEnableEvent implements ConceptEvent {
|
|
||||||
type = "enable";
|
|
||||||
constructor(public id: number) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ConceptDisableEvent implements ConceptEvent {
|
|
||||||
type = "disable";
|
|
||||||
constructor(public id: number) {}
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import { ConceptResponseDTO } from './conceptresponse.dto';
|
|
||||||
|
|
||||||
export class ConceptInTurnResponseDTO {
|
|
||||||
constructor(partial: Partial<ConceptInTurnResponseDTO>) {
|
|
||||||
this.order = partial.order;
|
|
||||||
this.subconcept = partial.subconcept;
|
|
||||||
this.markers = partial.markers;
|
|
||||||
this.concept = new ConceptResponseDTO(partial.concept);
|
|
||||||
}
|
|
||||||
|
|
||||||
concept: ConceptResponseDTO;
|
|
||||||
|
|
||||||
order: number;
|
|
||||||
|
|
||||||
subconcept: number;
|
|
||||||
|
|
||||||
markers: number;
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
import { ApiRequestTimeoutResponse } from '@nestjs/swagger';
|
|
||||||
|
|
||||||
export class ConceptResponseDTO {
|
|
||||||
constructor(partial: Partial<ConceptResponseDTO>) {
|
|
||||||
this.id = partial.id;
|
|
||||||
this.value = partial.value;
|
|
||||||
this.type = new ConceptTypeResponseDTO(partial.type);
|
|
||||||
}
|
|
||||||
|
|
||||||
id: number;
|
|
||||||
value: string;
|
|
||||||
type: ConceptTypeResponseDTO;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ConceptTypeResponseDTO {
|
|
||||||
constructor(partial: Partial<ConceptTypeResponseDTO>) {
|
|
||||||
this.id = partial.id;
|
|
||||||
this.value = partial.value;
|
|
||||||
}
|
|
||||||
id: number;
|
|
||||||
value: string;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user