Refactored api server project for latest mooncore changes
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using MoonlightServers.ApiServer.Database.Entities;
|
||||
using MoonlightServers.Shared.Http.Requests.Admin.StarDockerImages;
|
||||
using MoonlightServers.Shared.Http.Requests.Admin.StarVariables;
|
||||
using MoonlightServers.Shared.Http.Responses.Admin.StarDockerImages;
|
||||
using Riok.Mapperly.Abstractions;
|
||||
|
||||
@@ -11,5 +10,5 @@ public static partial class DockerImageMapper
|
||||
{
|
||||
public static partial StarDockerImageDetailResponse ToAdminResponse(StarDockerImage dockerImage);
|
||||
public static partial StarDockerImage ToDockerImage(CreateStarDockerImageRequest request);
|
||||
public static partial StarDockerImage Merge(UpdateStarVariableRequest request, StarDockerImage variable);
|
||||
public static partial StarDockerImage Merge(UpdateStarDockerImageRequest request, StarDockerImage variable);
|
||||
}
|
||||
15
MoonlightServers.ApiServer/Mappers/StarMapper.cs
Normal file
15
MoonlightServers.ApiServer/Mappers/StarMapper.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using MoonlightServers.ApiServer.Database.Entities;
|
||||
using MoonlightServers.Shared.Http.Requests.Admin.StarDockerImages;
|
||||
using MoonlightServers.Shared.Http.Requests.Admin.Stars;
|
||||
using MoonlightServers.Shared.Http.Responses.Admin.Stars;
|
||||
using Riok.Mapperly.Abstractions;
|
||||
|
||||
namespace MoonlightServers.ApiServer.Mappers;
|
||||
|
||||
[Mapper(AllowNullPropertyAssignment = false)]
|
||||
public static partial class StarMapper
|
||||
{
|
||||
public static partial StarDetailResponse ToAdminResponse(Star star);
|
||||
public static partial Star ToStar(CreateStarRequest request);
|
||||
public static partial Star Merge(UpdateStarRequest request, Star star);
|
||||
}
|
||||
Reference in New Issue
Block a user