Implemented basic ui for server sharing. Extracted server authorization. Refactoring and small improvements
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
using MoonlightServers.Shared.Http.Responses.Client.Servers.Allocations;
|
||||
using MoonlightServers.Shared.Models;
|
||||
|
||||
namespace MoonlightServers.Shared.Http.Responses.Client.Servers;
|
||||
|
||||
public class ServerDetailResponse
|
||||
public record ServerDetailResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -16,4 +17,12 @@ public class ServerDetailResponse
|
||||
public string StarName { get; set; }
|
||||
|
||||
public AllocationDetailResponse[] Allocations { get; set; }
|
||||
|
||||
public ShareData? Share { get; set; } = null;
|
||||
|
||||
public record ShareData
|
||||
{
|
||||
public string SharedBy { get; set; }
|
||||
public ServerSharePermission[] Permissions { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,10 @@
|
||||
using MoonlightServers.Shared.Models;
|
||||
|
||||
namespace MoonlightServers.Shared.Http.Responses.Client.Servers.Shares;
|
||||
|
||||
public class ServerShareResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
public string Permissions { get; set; }
|
||||
public string Username { get; set; }
|
||||
public ServerSharePermission[] Permissions { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user