Moved features to a specific folder
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
namespace Hutopy.Web.Contents.Data;
|
namespace Hutopy.Web.Features.Contents.Data;
|
||||||
|
|
||||||
public class Content
|
public class Content
|
||||||
{
|
{
|
||||||
@@ -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)
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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,
|
||||||
@@ -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;
|
||||||
@@ -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;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Hutopy.Web.Messages.Data;
|
namespace Hutopy.Web.Features.Messages.Data;
|
||||||
|
|
||||||
public class Message
|
public class Message
|
||||||
{
|
{
|
||||||
@@ -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)
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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;
|
||||||
@@ -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;
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user