Feat/Controllers
Added- AnalyticsController ResponsesController SurveyController UserController
This commit is contained in:
8
survey-beta/DTOs/Response/AnswerRequest.cs
Normal file
8
survey-beta/DTOs/Response/AnswerRequest.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace survey_beta.DTOs.Response
|
||||
{
|
||||
public class AnswerRequest
|
||||
{
|
||||
public string Question { get; set; }
|
||||
public string AnswerText { get; set; }
|
||||
}
|
||||
}
|
||||
9
survey-beta/DTOs/Response/AuthorResponseDto.cs
Normal file
9
survey-beta/DTOs/Response/AuthorResponseDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace survey_beta.DTOs.Response
|
||||
{
|
||||
public class AuthorResponseDto
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string Fullname { get; set; }
|
||||
public string Username { get; set; }
|
||||
}
|
||||
}
|
||||
10
survey-beta/DTOs/Response/CreatorResponseDto.cs
Normal file
10
survey-beta/DTOs/Response/CreatorResponseDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace survey_beta.DTOs.Response
|
||||
{
|
||||
public class CreatorResponseDto
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string IpAddress { get; set; }
|
||||
public string SurveyId { get; set; }
|
||||
public List<AnswerRequest> Answers { get; set; }
|
||||
}
|
||||
}
|
||||
9
survey-beta/DTOs/Response/ResponseDto.cs
Normal file
9
survey-beta/DTOs/Response/ResponseDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace survey_beta.DTOs.Response
|
||||
{
|
||||
public class ResponseDto
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string IpAddress { get; set; }
|
||||
public string SurveyId { get; set; }
|
||||
}
|
||||
}
|
||||
12
survey-beta/DTOs/Response/SurveyResponse.cs
Normal file
12
survey-beta/DTOs/Response/SurveyResponse.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace survey_beta.DTOs.Response
|
||||
{
|
||||
public class SurveyResponseDto
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Category { get; set; }
|
||||
public DateTime? ExpirationDate { get; set; }
|
||||
public bool IsPublished { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user