Started improving server shares and general api controller structure
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using MoonlightServers.Shared.Enums;
|
||||
using MoonlightServers.Shared.Models;
|
||||
|
||||
namespace MoonlightServers.Shared.Http.Requests.Client.Servers.Shares;
|
||||
@@ -8,5 +9,5 @@ public record CreateShareRequest
|
||||
[Required(ErrorMessage = "You need to provide a username")]
|
||||
public string Username { get; set; }
|
||||
|
||||
public List<ServerSharePermission> Permissions { get; set; } = [];
|
||||
public Dictionary<string, ServerPermissionLevel> Permissions { get; set; } = [];
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
using MoonlightServers.Shared.Models;
|
||||
using MoonlightServers.Shared.Enums;
|
||||
|
||||
namespace MoonlightServers.Shared.Http.Requests.Client.Servers.Shares;
|
||||
|
||||
public record UpdateShareRequest
|
||||
{
|
||||
public List<ServerSharePermission> Permissions { get; set; } = [];
|
||||
public Dictionary<string, ServerPermissionLevel> Permissions { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user