first commit

This commit is contained in:
2026-06-03 18:31:41 +03:30
commit 01f87cc461
71 changed files with 10802 additions and 0 deletions

15
backend/DTOs/AdminDtos.cs Normal file
View File

@@ -0,0 +1,15 @@
namespace backend.DTOs;
public class AdminReportItem
{
public int UserId { get; set; }
public string FullName { get; set; } = string.Empty;
public string Contact { get; set; } = string.Empty;
public string TrackingCode { get; set; } = string.Empty;
public bool HasTakenQuiz { get; set; }
public int ParticipationPoints { get; set; }
public int CorrectCount { get; set; }
public int TotalQuizPoints { get; set; }
public string KhatmTitles { get; set; } = string.Empty;
public int TotalScore { get; set; }
}

27
backend/DTOs/KhatmDtos.cs Normal file
View File

@@ -0,0 +1,27 @@
namespace backend.DTOs;
public class KhatmItemDto
{
public int Id { get; set; }
public string Title { get; set; } = string.Empty;
public string? Url { get; set; }
public int Points { get; set; }
}
public class KhatmSaveRequest
{
public int UserId { get; set; }
public List<KhatmSelectionDto> Selections { get; set; } = new();
}
public class KhatmSelectionDto
{
public int KhatmItemId { get; set; }
public bool IsSelected { get; set; }
}
public class KhatmSaveResponse
{
public bool Success { get; set; }
public int TotalScore { get; set; }
}

45
backend/DTOs/QuizDtos.cs Normal file
View File

@@ -0,0 +1,45 @@
namespace backend.DTOs;
public class QuestionDto
{
public int Id { get; set; }
public string QuestionText { get; set; } = string.Empty;
public List<string> Options { get; set; } = new();
}
public class QuizSubmitRequest
{
public int UserId { get; set; }
public List<AnswerDto> Answers { get; set; } = new();
}
public class AnswerDto
{
public int QuestionId { get; set; }
public int SelectedOption { get; set; }
}
public class QuizSubmitResponse
{
public int ParticipationPoints { get; set; }
public int CorrectCount { get; set; }
public int TotalQuizPoints { get; set; }
public int TotalScore { get; set; }
}
public class UserQuizResponse
{
public List<UserQuestionDto> Questions { get; set; } = new();
public int ParticipationPoints { get; set; }
public int CorrectCount { get; set; }
public int TotalQuizPoints { get; set; }
}
public class UserQuestionDto
{
public int Id { get; set; }
public string QuestionText { get; set; } = string.Empty;
public List<string> Options { get; set; } = new();
public int SelectedOption { get; set; }
public bool IsCorrect { get; set; }
}

32
backend/DTOs/UserDtos.cs Normal file
View File

@@ -0,0 +1,32 @@
namespace backend.DTOs;
public class RegisterRequest
{
public string FullName { get; set; } = string.Empty;
public string Contact { get; set; } = string.Empty;
}
public class RegisterResponse
{
public int UserId { get; set; }
public string TrackingCode { get; set; } = string.Empty;
}
public class LoginRequest
{
public string TrackingCode { get; set; } = string.Empty;
}
public class LoginResponse
{
public int UserId { get; set; }
public string FullName { get; set; } = string.Empty;
public string Contact { get; set; } = string.Empty;
public bool IsQuizCompleted { get; set; }
public List<int> KhatmSelections { get; set; } = new();
}
public class UserScoreResponse
{
public int TotalScore { get; set; }
}