6824d7ce7d
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 9s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 2m6s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 26s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 6s
56 lines
960 B
C#
56 lines
960 B
C#
using UniVerse.Domain.Enums;
|
|
|
|
namespace UniVerse.Application.DTOs.Users;
|
|
|
|
public record UserDto(
|
|
int Id,
|
|
string Email,
|
|
string? DisplayName,
|
|
string? AvatarUrl,
|
|
IReadOnlyList<UserRole> Roles,
|
|
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
|
|
);
|