Refactored api server project for latest mooncore changes

This commit is contained in:
2025-07-15 21:04:46 +02:00
parent 514f862a9d
commit f22f0c0e51
8 changed files with 271 additions and 110 deletions

View 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);
}