Add profiles domain, infra, API endpoints

This commit is contained in:
Holden
2026-06-18 12:05:54 -05:00
parent c7b8857208
commit e0171c3c82
36 changed files with 678 additions and 87 deletions

View File

@@ -1,5 +0,0 @@
namespace RecNet.Application;
public class Class1
{
}

View File

@@ -0,0 +1,12 @@
using AutoMapper;
using RecNet.Application.Profiles;
namespace RecNet.Application.Common.Mapping;
public class ApplicationMappingProfile : Profile
{
public ApplicationMappingProfile()
{
CreateMap<Domain.Entities.Profiles.Profile, ProfileDTO>();
}
}

View File

@@ -0,0 +1,13 @@
using Microsoft.Extensions.DependencyInjection;
namespace RecNet.Application;
public static class DependencyInjection
{
public static IServiceCollection AddApplication(this IServiceCollection services)
{
services.AddAutoMapper(_ => { }, typeof(DependencyInjection).Assembly);
return services;
}
}

View File

@@ -0,0 +1,20 @@
using System.Text.Json.Serialization;
using RecNet.Domain.Common;
namespace RecNet.Application.Profiles;
public class ProfileDTO
{
[JsonPropertyName("ProfileId")]
public Guid ProfileId { get; init; }
[JsonPropertyName("Name")]
public required string Name { get; init; }
[JsonPropertyName("Platform")]
public PlatformType Platform { get; init; }
[JsonPropertyName("CreatedAt")]
public DateTimeOffset CreatedAt { get; init; }
}

View File

@@ -6,4 +6,12 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\RecNet.Domain\RecNet.Domain.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="16.1.1" />
</ItemGroup>
</Project>