Refactored api server project for latest mooncore changes
This commit is contained in:
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