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:
@@ -23,5 +23,10 @@ public enum ConfigurationScope
|
||||
/// <summary>
|
||||
/// تنظیمات کمیسیون
|
||||
/// </summary>
|
||||
Commission = 3
|
||||
Commission = 3,
|
||||
|
||||
/// <summary>
|
||||
/// تنظیمات مالیات بر ارزش افزوده
|
||||
/// </summary>
|
||||
VAT = 4
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
namespace CMSMicroservice.Domain.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// وضعیت پرداخت دستی
|
||||
/// </summary>
|
||||
public enum ManualPaymentStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// در انتظار تایید SuperAdmin
|
||||
/// </summary>
|
||||
Pending = 0,
|
||||
|
||||
/// <summary>
|
||||
/// تایید شده و اعمال شده
|
||||
/// </summary>
|
||||
Approved = 1,
|
||||
|
||||
/// <summary>
|
||||
/// رد شده
|
||||
/// </summary>
|
||||
Rejected = 2,
|
||||
|
||||
/// <summary>
|
||||
/// لغو شده توسط ایجادکننده
|
||||
/// </summary>
|
||||
Cancelled = 3
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
namespace CMSMicroservice.Domain.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// نوع پرداخت دستی
|
||||
/// </summary>
|
||||
public enum ManualPaymentType
|
||||
{
|
||||
/// <summary>
|
||||
/// واریز نقدی
|
||||
/// </summary>
|
||||
CashDeposit = 1,
|
||||
|
||||
/// <summary>
|
||||
/// شارژ کیف پول تخفیف
|
||||
/// </summary>
|
||||
DiscountWalletCharge = 2,
|
||||
|
||||
/// <summary>
|
||||
/// شارژ کیف پول شبکه
|
||||
/// </summary>
|
||||
NetworkWalletCharge = 3,
|
||||
|
||||
/// <summary>
|
||||
/// تسویه حساب
|
||||
/// </summary>
|
||||
Settlement = 4,
|
||||
|
||||
/// <summary>
|
||||
/// اصلاح خطا
|
||||
/// </summary>
|
||||
ErrorCorrection = 5,
|
||||
|
||||
/// <summary>
|
||||
/// بازگشت وجه
|
||||
/// </summary>
|
||||
Refund = 6,
|
||||
|
||||
/// <summary>
|
||||
/// سایر موارد
|
||||
/// </summary>
|
||||
Other = 99
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
namespace CMSMicroservice.Domain.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// اولویت پیام
|
||||
/// </summary>
|
||||
public enum MessagePriority
|
||||
{
|
||||
/// <summary>
|
||||
/// کم - 1
|
||||
/// </summary>
|
||||
Low = 1,
|
||||
|
||||
/// <summary>
|
||||
/// متوسط - 2
|
||||
/// </summary>
|
||||
Medium = 2,
|
||||
|
||||
/// <summary>
|
||||
/// بالا - 3
|
||||
/// </summary>
|
||||
High = 3,
|
||||
|
||||
/// <summary>
|
||||
/// فوری - 4
|
||||
/// </summary>
|
||||
Urgent = 4
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
namespace CMSMicroservice.Domain.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// نوع پیام عمومی
|
||||
/// </summary>
|
||||
public enum MessageType
|
||||
{
|
||||
/// <summary>
|
||||
/// اطلاعیه - 1
|
||||
/// </summary>
|
||||
Announcement = 1,
|
||||
|
||||
/// <summary>
|
||||
/// اخبار - 2
|
||||
/// </summary>
|
||||
News = 2,
|
||||
|
||||
/// <summary>
|
||||
/// هشدار - 3
|
||||
/// </summary>
|
||||
Warning = 3,
|
||||
|
||||
/// <summary>
|
||||
/// تبلیغات - 4
|
||||
/// </summary>
|
||||
Promotion = 4,
|
||||
|
||||
/// <summary>
|
||||
/// بهروزرسانی سیستم - 5
|
||||
/// </summary>
|
||||
SystemUpdate = 5,
|
||||
|
||||
/// <summary>
|
||||
/// رویداد - 6
|
||||
/// </summary>
|
||||
Event = 6
|
||||
}
|
||||
@@ -21,4 +21,9 @@ public enum TransactionType
|
||||
/// شارژ کیف پول تخفیف
|
||||
/// </summary>
|
||||
DiscountWalletCharge = 12,
|
||||
|
||||
/// <summary>
|
||||
/// خرید از فروشگاه تخفیف
|
||||
/// </summary>
|
||||
DiscountShopPurchase = 13,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user