less shit code but still not good
This commit is contained in:
parent
ddfb5eff54
commit
9e50b97bc9
6 changed files with 14 additions and 47 deletions
|
|
@ -1,6 +0,0 @@
|
|||
namespace SurveyBackend.DTOs.Question;
|
||||
|
||||
public class OutputMultipleAnswerQuestionDto : OutputQuestionBaseDto
|
||||
{
|
||||
public List<OutputAnswerVariantDto> AnswerVariants { get; set; } = [];
|
||||
}
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
namespace SurveyBackend.DTOs.Question;
|
||||
|
||||
public abstract class OutputQuestionBaseDto
|
||||
public class OutputQuestionDto
|
||||
{
|
||||
public required int Id { get; set; }
|
||||
public required int SurveyId { get; set; }
|
||||
public required string Title { get; set; }
|
||||
public required string QuestionType { get; set; }
|
||||
public List<OutputAnswerVariantDto>? AnswerVariants { get; set; }
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
namespace SurveyBackend.DTOs.Question;
|
||||
|
||||
public class OutputSingleAnswerQuestionDto : OutputQuestionBaseDto
|
||||
{
|
||||
public List<OutputAnswerVariantDto> AnswerVariants { get; set; } = [];
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
namespace SurveyBackend.DTOs.Question;
|
||||
|
||||
public class OutputTextQuestionDto : OutputQuestionBaseDto
|
||||
{
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue