Добавил слой Application
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
using UniVerse.Domain.Enums;
|
||||
|
||||
namespace UniVerse.Application.DTOs.Users;
|
||||
|
||||
public record UserDto(
|
||||
int Id,
|
||||
string Email,
|
||||
string? DisplayName,
|
||||
string? AvatarUrl,
|
||||
UserRole Role,
|
||||
bool IsActive,
|
||||
int Xp,
|
||||
int Coins,
|
||||
int Level,
|
||||
DateTime CreatedAt
|
||||
);
|
||||
|
||||
public record UserStatsDto(
|
||||
int TotalLectures,
|
||||
int AttendedLectures,
|
||||
int TotalReviews,
|
||||
int Xp,
|
||||
int Coins,
|
||||
int Level,
|
||||
int AchievementsCount
|
||||
);
|
||||
|
||||
public record UpdateUserRequest(
|
||||
string? DisplayName,
|
||||
string? AvatarUrl
|
||||
);
|
||||
|
||||
public record UserFilterRequest(
|
||||
string? Search,
|
||||
UserRole? Role,
|
||||
bool? IsActive,
|
||||
int Page = 1,
|
||||
int PageSize = 20
|
||||
);
|
||||
|
||||
public record StudentProfileDto(
|
||||
int Id,
|
||||
string? StudentId,
|
||||
string? GroupName,
|
||||
int? EnrollmentYear,
|
||||
string? Faculty,
|
||||
string? Specialty
|
||||
);
|
||||
|
||||
public record TeacherProfileDto(
|
||||
int Id,
|
||||
string? Department,
|
||||
string? Title,
|
||||
string? Bio
|
||||
);
|
||||
Reference in New Issue
Block a user