refactor(backend): move all request/response types to a new Dto namespace
This commit is contained in:
parent
f8e6032449
commit
8bd4449804
21 changed files with 310 additions and 316 deletions
21
Foxnouns.Backend/Dto/Meta.cs
Normal file
21
Foxnouns.Backend/Dto/Meta.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
// ReSharper disable NotAccessedPositionalProperty.Global
|
||||
namespace Foxnouns.Backend.Dto;
|
||||
|
||||
public record MetaResponse(
|
||||
string Repository,
|
||||
string Version,
|
||||
string Hash,
|
||||
int Members,
|
||||
UserInfoResponse Users,
|
||||
LimitsResponse Limits
|
||||
);
|
||||
|
||||
public record UserInfoResponse(int Total, int ActiveMonth, int ActiveWeek, int ActiveDay);
|
||||
|
||||
public record LimitsResponse(
|
||||
int MemberCount,
|
||||
int BioLength,
|
||||
int CustomPreferences,
|
||||
int MaxAuthMethods,
|
||||
int MaxFlags
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue