Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using SharedKernel.Infrastructure.Health;
using StackExchange.Redis;
using IdentityCacheTags = Identity.Events.CacheTags;
using ProductCatalogCacheTags = ProductCatalog.Events.CacheTags;
using ProductCatalogCacheTags = ProductCatalog.Common.Events.CacheTags;
using ReviewsCacheTags = Reviews.Common.Events.CacheTags;

namespace APITemplate.Api.Extensions;
Expand Down
2 changes: 1 addition & 1 deletion src/APITemplate/Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using JasperFx;
using JasperFx.Resources;
using ProductCatalog;
using ProductCatalog.Features.Product;
using ProductCatalog.Features.CreateProducts;
using ProductCatalog.Handlers;
using Reviews;
using Reviews.Features;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ErrorOr;

namespace ProductCatalog.Errors;
namespace ProductCatalog.Common.Errors;

public static class DomainErrors
{
Expand Down Expand Up @@ -40,4 +40,3 @@ public static Error NotFound(Guid id) =>
);
}
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ProductCatalog.Errors;
namespace ProductCatalog.Common.Errors;

public static class ErrorCatalog
{
Expand Down Expand Up @@ -36,4 +36,3 @@ public static class Categories
"Duplicate category ID '{0}' appears multiple times in the request.";
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ErrorOr;

namespace ProductCatalog.Errors;
namespace ProductCatalog.Common.Errors;

internal static class ProductCatalogDomainErrors
{
Expand All @@ -10,4 +10,3 @@ internal static Error NegativePrice() =>
Error.Validation("PC-0400", "Price cannot be negative.");
}
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ProductCatalog.Events;
namespace ProductCatalog.Common.Events;

public static class CacheTags
{
Expand All @@ -8,4 +8,3 @@ public static class CacheTags
/// <summary>Reviews cache is also invalidated when products are deleted (orphaned reviews).</summary>
public const string Reviews = "Reviews";
}

111 changes: 0 additions & 111 deletions src/Modules/ProductCatalog/Controllers/V1/CategoriesController.cs

This file was deleted.

89 changes: 0 additions & 89 deletions src/Modules/ProductCatalog/Controllers/V1/ProductDataController.cs

This file was deleted.

92 changes: 0 additions & 92 deletions src/Modules/ProductCatalog/Controllers/V1/ProductsController.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Wolverine;
using CategoryEntity = ProductCatalog.Entities.Category;

namespace ProductCatalog.Features.Category;
namespace ProductCatalog.Features.CreateCategories;

/// <summary>Creates multiple categories in a single batch operation.</summary>
public sealed record CreateCategoriesCommand(CreateCategoriesRequest Request);
Expand Down Expand Up @@ -68,4 +68,3 @@ await unitOfWork.ExecuteInTransactionAsync(
return (new BatchResponse([], command.Request.Items.Count, 0), messages);
}
}

Loading
Loading