Moved features to a specific folder

This commit is contained in:
Jonathan Bourdon
2024-07-18 22:22:44 -04:00
parent 98c85265f1
commit b34a775a4b
23 changed files with 32 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
namespace Hutopy.Web.Contents.Data; namespace Hutopy.Web.Features.Contents.Data;
public class Content public class Content
{ {

View File

@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Contents.Data; namespace Hutopy.Web.Features.Contents.Data;
public class ContentDbContext( public class ContentDbContext(
DbContextOptions<ContentDbContext> options) DbContextOptions<ContentDbContext> options)

View File

@@ -1,7 +1,7 @@
using Hutopy.Web.Contents.Data; using Hutopy.Web.Features.Contents.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Contents; namespace Hutopy.Web.Features.Contents;
public static class DependencyInjection public static class DependencyInjection
{ {

View File

@@ -1,8 +1,8 @@
using FastEndpoints; using FastEndpoints;
using Hutopy.Web.Contents.Data; using Hutopy.Web.Features.Contents.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Contents.Handlers; namespace Hutopy.Web.Features.Contents.Handlers;
public sealed class GetContentsRequest public sealed class GetContentsRequest
{ {

View File

@@ -1,8 +1,8 @@
using FastEndpoints; using FastEndpoints;
using Hutopy.Web.Contents.Data; using Hutopy.Web.Features.Contents.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Contents.Handlers; namespace Hutopy.Web.Features.Contents.Handlers;
public sealed class GetContentsByUserRequest public sealed class GetContentsByUserRequest
{ {

View File

@@ -1,8 +1,8 @@
using FastEndpoints; using FastEndpoints;
using Hutopy.Web.Common; using Hutopy.Web.Common;
using Hutopy.Web.Contents.Data; using Hutopy.Web.Features.Contents.Data;
namespace Hutopy.Web.Contents.Handlers; namespace Hutopy.Web.Features.Contents.Handlers;
public record struct PostContentRequest( public record struct PostContentRequest(
string? Title, string? Title,

View File

@@ -1,6 +1,6 @@
// <auto-generated /> // <auto-generated />
using System; using System;
using Hutopy.Web.Contents.Data; using Hutopy.Web.Features.Contents.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;

View File

@@ -1,6 +1,6 @@
// <auto-generated /> // <auto-generated />
using System; using System;
using Hutopy.Web.Contents.Data; using Hutopy.Web.Features.Contents.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

View File

@@ -1,4 +1,4 @@
namespace Hutopy.Web.Messages.Data; namespace Hutopy.Web.Features.Messages.Data;
public class Message public class Message
{ {

View File

@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Messages.Data; namespace Hutopy.Web.Features.Messages.Data;
public class MessagingDbContext( public class MessagingDbContext(
DbContextOptions<MessagingDbContext> options) DbContextOptions<MessagingDbContext> options)

View File

@@ -1,7 +1,7 @@
using Hutopy.Web.Messages.Data; using Hutopy.Web.Features.Messages.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Messages; namespace Hutopy.Web.Features.Messages;
public static class DependencyInjection public static class DependencyInjection
{ {

View File

@@ -1,8 +1,8 @@
using FastEndpoints; using FastEndpoints;
using Hutopy.Web.Messages.Data; using Hutopy.Web.Features.Messages.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Messages.Handlers; namespace Hutopy.Web.Features.Messages.Handlers;
public class GetMessagesRequest public class GetMessagesRequest
{ {

View File

@@ -1,8 +1,8 @@
using FastEndpoints; using FastEndpoints;
using Hutopy.Web.Messages.Data; using Hutopy.Web.Features.Messages.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Messages.Handlers; namespace Hutopy.Web.Features.Messages.Handlers;
public class GetMessagesRepliesRequest public class GetMessagesRepliesRequest
{ {

View File

@@ -1,8 +1,8 @@
using FastEndpoints; using FastEndpoints;
using Hutopy.Web.Messages.Data; using Hutopy.Web.Features.Messages.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Messages.Handlers; namespace Hutopy.Web.Features.Messages.Handlers;
public class GetMessagesByUserRequest public class GetMessagesByUserRequest
{ {

View File

@@ -1,8 +1,8 @@
using FastEndpoints; using FastEndpoints;
using Hutopy.Web.Common; using Hutopy.Web.Common;
using Hutopy.Web.Messages.Data; using Hutopy.Web.Features.Messages.Data;
namespace Hutopy.Web.Messages.Handlers; namespace Hutopy.Web.Features.Messages.Handlers;
public class PostMessageRequest public class PostMessageRequest
{ {

View File

@@ -1,8 +1,8 @@
using FastEndpoints; using FastEndpoints;
using Hutopy.Web.Common; using Hutopy.Web.Common;
using Hutopy.Web.Messages.Data; using Hutopy.Web.Features.Messages.Data;
namespace Hutopy.Web.Messages.Handlers; namespace Hutopy.Web.Features.Messages.Handlers;
internal sealed class PostReplyMessageRequest internal sealed class PostReplyMessageRequest
{ {

View File

@@ -1,6 +1,6 @@
// <auto-generated /> // <auto-generated />
using System; using System;
using Hutopy.Web.Messages.Data; using Hutopy.Web.Features.Messages.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;

View File

@@ -1,6 +1,6 @@
// <auto-generated /> // <auto-generated />
using System; using System;
using Hutopy.Web.Messages.Data; using Hutopy.Web.Features.Messages.Data;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

View File

@@ -5,8 +5,8 @@ using Hutopy.Infrastructure;
using Hutopy.Infrastructure.Data; using Hutopy.Infrastructure.Data;
using Hutopy.Infrastructure.Identity; using Hutopy.Infrastructure.Identity;
using Hutopy.Web; using Hutopy.Web;
using Hutopy.Web.Contents; using Hutopy.Web.Features.Contents;
using Hutopy.Web.Messages; using Hutopy.Web.Features.Messages;
using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using NSwag; using NSwag;

View File

@@ -2,8 +2,8 @@
using Hutopy.Infrastructure.Identity; using Hutopy.Infrastructure.Identity;
using Hutopy.Infrastructure.Identity.OwnedEntities; using Hutopy.Infrastructure.Identity.OwnedEntities;
using Hutopy.Web.Common; using Hutopy.Web.Common;
using Hutopy.Web.Contents.Data; using Hutopy.Web.Features.Contents.Data;
using Hutopy.Web.Messages.Data; using Hutopy.Web.Features.Messages.Data;
namespace Hutopy.Web; namespace Hutopy.Web;

View File

@@ -31,9 +31,4 @@
<PackageReference Include="FluentValidation.AspNetCore" /> <PackageReference Include="FluentValidation.AspNetCore" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Contents\Migrations\" />
<Folder Include="Messages\Migrations\" />
</ItemGroup>
</Project> </Project>