Добавил слой Application
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
namespace UniVerse.Application.DTOs.Achievements;
|
||||
|
||||
public record AchievementDto(
|
||||
int Id,
|
||||
string Name,
|
||||
string? Description,
|
||||
string? IconUrl,
|
||||
int XpReward,
|
||||
int CoinReward,
|
||||
string? Condition,
|
||||
DateTime CreatedAt
|
||||
);
|
||||
|
||||
public record UserAchievementDto(
|
||||
int Id,
|
||||
AchievementDto Achievement,
|
||||
DateTime AwardedAt
|
||||
);
|
||||
|
||||
public record CreateAchievementRequest(
|
||||
string Name,
|
||||
string? Description,
|
||||
string? IconUrl,
|
||||
int XpReward,
|
||||
int CoinReward,
|
||||
string? Condition
|
||||
);
|
||||
|
||||
public record UpdateAchievementRequest(
|
||||
string Name,
|
||||
string? Description,
|
||||
string? IconUrl,
|
||||
int XpReward,
|
||||
int CoinReward,
|
||||
string? Condition
|
||||
);
|
||||
Reference in New Issue
Block a user