20 lines
750 B
C#
20 lines
750 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Moonlight.Api.Infrastructure.Database.Entities;
|
|
using Moonlight.Shared.Admin.Sys.ApiKeys;
|
|
using Riok.Mapperly.Abstractions;
|
|
|
|
namespace Moonlight.Api.Admin.Sys.ApiKeys;
|
|
|
|
[Mapper]
|
|
[SuppressMessage("Mapper", "RMG020:No members are mapped in an object mapping")]
|
|
[SuppressMessage("Mapper", "RMG012:No members are mapped in an object mapping")]
|
|
public static partial class ApiKeyMapper
|
|
{
|
|
public static partial IQueryable<ApiKeyDto> ProjectToDto(this IQueryable<ApiKey> apiKeys);
|
|
|
|
public static partial ApiKeyDto ToDto(ApiKey apiKey);
|
|
|
|
public static partial void Merge([MappingTarget] ApiKey apiKey, UpdateApiKeyDto request);
|
|
|
|
public static partial ApiKey ToEntity(CreateApiKeyDto request);
|
|
} |