Refactor endpoint services to accept narrow inputs
This commit is contained in:
12
Endpoints/SuggestionInput.cs
Normal file
12
Endpoints/SuggestionInput.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace GameList.Endpoints;
|
||||
|
||||
internal readonly record struct SuggestionInput(
|
||||
string Name,
|
||||
string? Genre,
|
||||
string? Description,
|
||||
string? ScreenshotUrl,
|
||||
string? YoutubeUrl,
|
||||
string? GameUrl,
|
||||
int? MinPlayers,
|
||||
int? MaxPlayers
|
||||
);
|
||||
Reference in New Issue
Block a user