Add new DTOs
This commit is contained in:
5
LightlessSyncAPI/Dto/User/BanRequest.cs
Normal file
5
LightlessSyncAPI/Dto/User/BanRequest.cs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
using MessagePack;
|
||||||
|
namespace LightlessSync.API.Dto.User;
|
||||||
|
|
||||||
|
[MessagePackObject(keyAsPropertyName: true)]
|
||||||
|
public record BanRequest(string UID);
|
||||||
9
LightlessSyncAPI/Dto/User/UnbanRequest.cs
Normal file
9
LightlessSyncAPI/Dto/User/UnbanRequest.cs
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user