Refactored project to module structure
This commit is contained in:
12
Moonlight.Shared/Admin/Sys/ApiKeys/CreateApiKeyDto.cs
Normal file
12
Moonlight.Shared/Admin/Sys/ApiKeys/CreateApiKeyDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Moonlight.Shared.Admin.Sys.ApiKeys;
|
||||
|
||||
public class CreateApiKeyDto
|
||||
{
|
||||
[Required] [MaxLength(30)] public string Name { get; set; }
|
||||
[MaxLength(300)] public string Description { get; set; } = "";
|
||||
|
||||
[Required] public DateTimeOffset ValidUntil { get; set; }
|
||||
[Required] public string[] Permissions { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user