2 Commits

Author SHA1 Message Date
defnotken
4ce70bee83 quick change 2025-09-05 16:36:14 -05:00
defnotken
d73dea8706 Add new DTOs 2025-09-05 16:32:33 -05:00
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
using MessagePack;
namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public record BanRequest(string Uid);

View File

@@ -0,0 +1,9 @@
using MessagePack;
namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public record UnbanRequest(string? Uid, string? DiscordId)
{
public bool IsValid => !string.IsNullOrEmpty(Uid) || !string.IsNullOrEmpty(DiscordId);
}