Add validators and services for Product Galleries and Product Tags
- Implemented Create, Delete, Get, and Update validators for Product Galleries. - Added Create, Delete, Get, and Update validators for Product Tags. - Created service classes for handling Discount Categories, Discount Orders, Discount Products, Discount Shopping Cart, Product Categories, Product Galleries, and Product Tags. - Each service class integrates with CQRS for command and query handling. - Established mapping profiles for Product Galleries.
This commit is contained in:
@@ -1,30 +1,39 @@
|
||||
using CMSMicroservice.Domain.Entities.Payment;
|
||||
using CMSMicroservice.Domain.Entities.Message;
|
||||
using CMSMicroservice.Domain.Entities.Order;
|
||||
using CMSMicroservice.Domain.Entities.DiscountShop;
|
||||
|
||||
namespace CMSMicroservice.Application.Common.Interfaces;
|
||||
|
||||
public interface IApplicationDbContext
|
||||
{
|
||||
DbSet<UserAddress> UserAddresss { get; }
|
||||
DbSet<UserAddress> UserAddresses { get; }
|
||||
DbSet<Package> Packages { get; }
|
||||
DbSet<Role> Roles { get; }
|
||||
DbSet<Category> Categorys { get; }
|
||||
DbSet<Category> Categories { get; }
|
||||
DbSet<UserRole> UserRoles { get; }
|
||||
DbSet<UserCarts> UserCartss { get; }
|
||||
DbSet<ProductGallerys> ProductGalleryss { get; }
|
||||
DbSet<FactorDetails> FactorDetailss { get; }
|
||||
DbSet<Products> Productss { get; }
|
||||
DbSet<ProductImages> ProductImagess { get; }
|
||||
DbSet<UserCart> UserCarts { get; }
|
||||
DbSet<ProductGallery> ProductGalleries { get; }
|
||||
DbSet<FactorDetails> FactorDetails { get; }
|
||||
DbSet<Product> Products { get; }
|
||||
DbSet<ProductImage> ProductImages { get; }
|
||||
DbSet<User> Users { get; }
|
||||
DbSet<OtpToken> OtpTokens { get; }
|
||||
DbSet<Contract> Contracts { get; }
|
||||
DbSet<UserContract> UserContracts { get; }
|
||||
DbSet<Tag> Tags { get; }
|
||||
DbSet<PruductCategory> PruductCategorys { get; }
|
||||
DbSet<PruductTag> PruductTags { get; }
|
||||
DbSet<Transactions> Transactionss { get; }
|
||||
DbSet<ProductCategory> ProductCategories { get; }
|
||||
DbSet<ProductTag> ProductTags { get; }
|
||||
DbSet<Transaction> Transactions { get; }
|
||||
DbSet<UserOrder> UserOrders { get; }
|
||||
DbSet<OrderVAT> OrderVATs { get; }
|
||||
DbSet<UserPackagePurchase> UserPackagePurchases { get; }
|
||||
DbSet<UserWallet> UserWallets { get; }
|
||||
DbSet<UserWalletChangeLog> UserWalletChangeLogs { get; }
|
||||
DbSet<SystemConfiguration> SystemConfigurations { get; }
|
||||
DbSet<SystemConfigurationHistory> SystemConfigurationHistories { get; }
|
||||
DbSet<ManualPayment> ManualPayments { get; }
|
||||
DbSet<PublicMessage> PublicMessages { get; }
|
||||
DbSet<ClubMembership> ClubMemberships { get; }
|
||||
DbSet<ClubMembershipHistory> ClubMembershipHistories { get; }
|
||||
DbSet<ClubFeature> ClubFeatures { get; }
|
||||
@@ -36,5 +45,14 @@ public interface IApplicationDbContext
|
||||
DbSet<CommissionPayoutHistory> CommissionPayoutHistories { get; }
|
||||
DbSet<WorkerExecutionLog> WorkerExecutionLogs { get; }
|
||||
DbSet<DayaLoanContract> DayaLoanContracts { get; }
|
||||
|
||||
// ============= Discount Shop =============
|
||||
DbSet<DiscountProduct> DiscountProducts { get; }
|
||||
DbSet<DiscountCategory> DiscountCategories { get; }
|
||||
DbSet<DiscountProductCategory> DiscountProductCategories { get; }
|
||||
DbSet<DiscountShoppingCart> DiscountShoppingCarts { get; }
|
||||
DbSet<DiscountOrder> DiscountOrders { get; }
|
||||
DbSet<DiscountOrderDetail> DiscountOrderDetails { get; }
|
||||
|
||||
Task<int> SaveChangesAsync(CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user