Started improving server shares and general api controller structure
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using MoonlightServers.Shared.Enums;
|
||||
using MoonlightServers.Shared.Http.Responses.Client.Servers.Allocations;
|
||||
using MoonlightServers.Shared.Models;
|
||||
|
||||
@@ -23,6 +24,6 @@ public record ServerDetailResponse
|
||||
public record ShareData
|
||||
{
|
||||
public string SharedBy { get; set; }
|
||||
public ServerSharePermission[] Permissions { get; set; }
|
||||
public Dictionary<string, ServerPermissionLevel> Permissions { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
using MoonlightServers.Shared.Enums;
|
||||
using MoonlightServers.Shared.Models;
|
||||
|
||||
namespace MoonlightServers.Shared.Http.Responses.Client.Servers.Shares;
|
||||
@@ -6,5 +7,5 @@ public class ServerShareResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Username { get; set; }
|
||||
public ServerSharePermission[] Permissions { get; set; }
|
||||
public Dictionary<string, ServerPermissionLevel> Permissions { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user