Feat/Controllers

Added- AnalyticsController ResponsesController SurveyController UserController
This commit is contained in:
2025-02-01 14:06:32 -08:00
parent 77fc9dfd92
commit d2a32d35f4
59 changed files with 6313 additions and 185 deletions

View File

@@ -0,0 +1,8 @@
namespace survey_beta.DTOs.Response
{
public class AnswerRequest
{
public string Question { get; set; }
public string AnswerText { get; set; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}