Started refactoring to be compatible with the changed nuget packages and the mooncore changes
This commit is contained in:
14
MoonlightServers.ApiServer/Mappers/AllocationMapper.cs
Normal file
14
MoonlightServers.ApiServer/Mappers/AllocationMapper.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using MoonlightServers.ApiServer.Database.Entities;
|
||||
using MoonlightServers.Shared.Http.Requests.Admin.NodeAllocations;
|
||||
using MoonlightServers.Shared.Http.Responses.Admin.NodeAllocations;
|
||||
using Riok.Mapperly.Abstractions;
|
||||
|
||||
namespace MoonlightServers.ApiServer.Mappers;
|
||||
|
||||
[Mapper(AllowNullPropertyAssignment = false)]
|
||||
public static partial class AllocationMapper
|
||||
{
|
||||
public static partial NodeAllocationResponse ToNodeAllocation(Allocation allocation);
|
||||
public static partial Allocation ToAllocation(CreateNodeAllocationRequest request);
|
||||
public static partial Allocation Merge(UpdateNodeAllocationRequest request, Allocation allocation);
|
||||
}
|
||||
Reference in New Issue
Block a user