Refactor backend into structured endpoints, contracts, and middleware
This commit is contained in:
7
Contracts/Dtos.cs
Normal file
7
Contracts/Dtos.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace GameList.Contracts;
|
||||
|
||||
public record SetNameRequest(string Name);
|
||||
public record SuggestionRequest(string Name, string? Genre, string? Description, string? ScreenshotUrl, string? YoutubeUrl);
|
||||
public record SuggestionDto(int Id, string Name, string? Genre, string? Description, string? ScreenshotUrl, string? YoutubeUrl);
|
||||
public record VoteRequest(int SuggestionId, int Score);
|
||||
public record PhaseRequest(GameList.Domain.Phase Phase);
|
||||
Reference in New Issue
Block a user