Generator Changes at 11/12/2025 1:32:03 AM +03:30
This commit is contained in:
16
src/CMSMicroservice.Domain/Entities/FactorDetails.cs
Normal file
16
src/CMSMicroservice.Domain/Entities/FactorDetails.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class FactorDetails : BaseAuditableEntity
|
||||
{
|
||||
public long ProductId { get; set; }
|
||||
//Product Navigation Property
|
||||
public virtual Products Product { get; set; }
|
||||
public int Count { get; set; }
|
||||
public long UnitPrice { get; set; }
|
||||
public int UnitDiscount { get; set; }
|
||||
public long OrderId { get; set; }
|
||||
//Order Navigation Property
|
||||
public virtual UserOrder Order { get; set; }
|
||||
public long UnitDiscountPrice { get; set; }
|
||||
public bool IsChangePrice { get; set; }
|
||||
}
|
||||
11
src/CMSMicroservice.Domain/Entities/ProductGallerys.cs
Normal file
11
src/CMSMicroservice.Domain/Entities/ProductGallerys.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//توکن Otp
|
||||
public class ProductGallerys : BaseAuditableEntity
|
||||
{
|
||||
public long ProductImageId { get; set; }
|
||||
//ProductImage Navigation Property
|
||||
public virtual ProductImages ProductImage { get; set; }
|
||||
public long ProductId { get; set; }
|
||||
//Product Navigation Property
|
||||
public virtual Products Product { get; set; }
|
||||
}
|
||||
10
src/CMSMicroservice.Domain/Entities/ProductImages.cs
Normal file
10
src/CMSMicroservice.Domain/Entities/ProductImages.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//توکن Otp
|
||||
public class ProductImages : BaseAuditableEntity
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string ImagePath { get; set; }
|
||||
public string ImageThumbnailPath { get; set; }
|
||||
//ProductGallerys Collection Navigation Reference
|
||||
public virtual ICollection<ProductGallerys> ProductGalleryss { get; set; }
|
||||
}
|
||||
23
src/CMSMicroservice.Domain/Entities/Products.cs
Normal file
23
src/CMSMicroservice.Domain/Entities/Products.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//توکن Otp
|
||||
public class Products : BaseAuditableEntity
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string ShortInfomation { get; set; }
|
||||
public string FullInformation { get; set; }
|
||||
public long Price { get; set; }
|
||||
public int Discount { get; set; }
|
||||
public int Rate { get; set; }
|
||||
public string ImagePath { get; set; }
|
||||
public string ThumbnailPath { get; set; }
|
||||
public int SaleCount { get; set; }
|
||||
public int ViewCount { get; set; }
|
||||
public int RemainingCount { get; set; }
|
||||
//UserCarts Collection Navigation Reference
|
||||
public virtual ICollection<UserCarts> UserCartss { get; set; }
|
||||
//ProductGallerys Collection Navigation Reference
|
||||
public virtual ICollection<ProductGallerys> ProductGalleryss { get; set; }
|
||||
//FactorDetails Collection Navigation Reference
|
||||
public virtual ICollection<FactorDetails> FactorDetailss { get; set; }
|
||||
}
|
||||
29
src/CMSMicroservice.Domain/Entities/Transactions.cs
Normal file
29
src/CMSMicroservice.Domain/Entities/Transactions.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class Transactions : BaseAuditableEntity
|
||||
{
|
||||
public string MerchantId { get; set; }
|
||||
public long Amount { get; set; }
|
||||
public string CallbackUrl { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string? Mobile { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public int? RequestStatusCode { get; set; }
|
||||
public string? RequestStatusMessage { get; set; }
|
||||
public string? Authority { get; set; }
|
||||
public string? FeeType { get; set; }
|
||||
public long? Fee { get; set; }
|
||||
public int? Currency { get; set; }
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
//تاریخ پرداخت
|
||||
public DateTime? PaymentDate { get; set; }
|
||||
public int? VerificationStatusCode { get; set; }
|
||||
public string? VerificationStatusMessage { get; set; }
|
||||
public string? CardHash { get; set; }
|
||||
public string? CardPan { get; set; }
|
||||
public string? RefId { get; set; }
|
||||
public string? OrderId { get; set; }
|
||||
//Order Navigation Property
|
||||
public virtual UserOrder? Order { get; set; }
|
||||
public TransactionType Type { get; set; }
|
||||
}
|
||||
@@ -2,44 +2,48 @@ namespace CMSMicroservice.Domain.Entities;
|
||||
//کاربر
|
||||
public class User : BaseAuditableEntity
|
||||
{
|
||||
//نام
|
||||
//نام
|
||||
public string? FirstName { get; set; }
|
||||
//نام خانوادگی
|
||||
//نام خانوادگی
|
||||
public string? LastName { get; set; }
|
||||
//شماره موبایل
|
||||
//شماره موبایل
|
||||
public string Mobile { get; set; }
|
||||
//کد ملی
|
||||
//کد ملی
|
||||
public string? NationalCode { get; set; }
|
||||
//آدرس آواتار
|
||||
//آدرس آواتار
|
||||
public string? AvatarPath { get; set; }
|
||||
//شناسه والد
|
||||
//شناسه والد
|
||||
public long? ParentId { get; set; }
|
||||
//User Navigation Property
|
||||
//User Navigation Property
|
||||
public virtual User? Parent { get; set; }
|
||||
//کد ارجاع
|
||||
//کد ارجاع
|
||||
public string ReferralCode { get; set; }
|
||||
//موبایل فعال شده؟
|
||||
//موبایل فعال شده؟
|
||||
public bool IsMobileVerified { get; set; }
|
||||
//تاریخ فعال سازی موبایل
|
||||
//تاریخ فعال سازی موبایل
|
||||
public DateTime? MobileVerifiedAt { get; set; }
|
||||
//قوانین پذیرفته شده؟
|
||||
//قوانین پذیرفته شده؟
|
||||
public bool IsRulesAccepted { get; set; }
|
||||
//تاریخ پذیرش قوانین
|
||||
//تاریخ پذیرش قوانین
|
||||
public DateTime? RulesAcceptedAt { get; set; }
|
||||
//اعلان ایمیل
|
||||
//اعلان ایمیل
|
||||
public bool EmailNotifications { get; set; }
|
||||
//اعلان پیامک
|
||||
//اعلان پیامک
|
||||
public bool SmsNotifications { get; set; }
|
||||
//اعلان پوش
|
||||
//اعلان پوش
|
||||
public bool PushNotifications { get; set; }
|
||||
//تاریخ تولد
|
||||
//تاریخ تولد
|
||||
public DateTime? BirthDate { get; set; }
|
||||
//UserAddress Collection Navigation Reference
|
||||
public virtual ICollection<UserAddress> UserAddresss { get; set; }
|
||||
//UserRole Collection Navigation Reference
|
||||
public virtual ICollection<UserRole> UserRoles { get; set; }
|
||||
//UserOrder Collection Navigation Reference
|
||||
public virtual ICollection<UserOrder> UserOrders { get; set; }
|
||||
//User Collection Navigation Reference
|
||||
public virtual ICollection<User> Users { get; set; }
|
||||
}
|
||||
//UserWallet Collection Navigation Reference
|
||||
public virtual ICollection<UserWallet> UserWallets { get; set; }
|
||||
//UserCarts Collection Navigation Reference
|
||||
public virtual ICollection<UserCarts> UserCartss { get; set; }
|
||||
//UserOrder Collection Navigation Reference
|
||||
public virtual ICollection<UserOrder> UserOrders { get; set; }
|
||||
}
|
||||
|
||||
12
src/CMSMicroservice.Domain/Entities/UserCarts.cs
Normal file
12
src/CMSMicroservice.Domain/Entities/UserCarts.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class UserCarts : BaseAuditableEntity
|
||||
{
|
||||
public long ProductId { get; set; }
|
||||
//Product Navigation Property
|
||||
public virtual Products Product { get; set; }
|
||||
public long UserId { get; set; }
|
||||
//User Navigation Property
|
||||
public virtual User User { get; set; }
|
||||
public int Count { get; set; }
|
||||
}
|
||||
@@ -2,24 +2,28 @@ namespace CMSMicroservice.Domain.Entities;
|
||||
//سفارش کاربر
|
||||
public class UserOrder : BaseAuditableEntity
|
||||
{
|
||||
//قیمت
|
||||
//قیمت
|
||||
public long Price { get; set; }
|
||||
//شناسه پکیج
|
||||
//شناسه پکیج
|
||||
public long PackageId { get; set; }
|
||||
//Package Navigation Property
|
||||
//Package Navigation Property
|
||||
public virtual Package Package { get; set; }
|
||||
//شناسه تراکنش
|
||||
//شناسه تراکنش
|
||||
public long? TransactionId { get; set; }
|
||||
//وضعیت پرداخت
|
||||
public bool PaymentStatus { get; set; }
|
||||
//تاریخ پرداخت
|
||||
//وضعیت پرداخت
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
//تاریخ پرداخت
|
||||
public DateTime? PaymentDate { get; set; }
|
||||
//شناسه کاربر
|
||||
//شناسه کاربر
|
||||
public long UserId { get; set; }
|
||||
//User Navigation Property
|
||||
//User Navigation Property
|
||||
public virtual User User { get; set; }
|
||||
//شناسه آدرس کاربر
|
||||
//شناسه آدرس کاربر
|
||||
public long UserAddressId { get; set; }
|
||||
//UserAddress Navigation Property
|
||||
//UserAddress Navigation Property
|
||||
public virtual UserAddress UserAddress { get; set; }
|
||||
}
|
||||
//FactorDetails Collection Navigation Reference
|
||||
public virtual ICollection<FactorDetails> FactorDetailss { get; set; }
|
||||
//Transactions Collection Navigation Reference
|
||||
public virtual ICollection<Transactions> Transactionss { get; set; }
|
||||
}
|
||||
|
||||
13
src/CMSMicroservice.Domain/Entities/UserWallet.cs
Normal file
13
src/CMSMicroservice.Domain/Entities/UserWallet.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class UserWallet : BaseAuditableEntity
|
||||
{
|
||||
//شناسه کاربر
|
||||
public long UserId { get; set; }
|
||||
//User Navigation Property
|
||||
public virtual User User { get; set; }
|
||||
//موجودی
|
||||
public long Balance { get; set; }
|
||||
//UserWalletChangeLog Collection Navigation Reference
|
||||
public virtual ICollection<UserWalletChangeLog> UserWalletChangeLogs { get; set; }
|
||||
}
|
||||
17
src/CMSMicroservice.Domain/Entities/UserWalletChangeLog.cs
Normal file
17
src/CMSMicroservice.Domain/Entities/UserWalletChangeLog.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class UserWalletChangeLog : BaseAuditableEntity
|
||||
{
|
||||
//شناسه کیف پول
|
||||
public long WalletId { get; set; }
|
||||
//Wallet Navigation Property
|
||||
public virtual UserWallet Wallet { get; set; }
|
||||
//موجودی
|
||||
public long CurrentBalance { get; set; }
|
||||
//تغییر موجودی
|
||||
public long ChangeValue { get; set; }
|
||||
//افزایشی؟
|
||||
public bool IsIncrease { get; set; }
|
||||
//شناسه ارجاع
|
||||
public long? RefrenceId { get; set; }
|
||||
}
|
||||
8
src/CMSMicroservice.Domain/Enums/PaymentStatus.cs
Normal file
8
src/CMSMicroservice.Domain/Enums/PaymentStatus.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Enums;
|
||||
//پکیج
|
||||
public enum PaymentStatus
|
||||
{
|
||||
Success = 0,
|
||||
Reject = 1,
|
||||
Pending = 2,
|
||||
}
|
||||
9
src/CMSMicroservice.Domain/Enums/TransactionType.cs
Normal file
9
src/CMSMicroservice.Domain/Enums/TransactionType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace CMSMicroservice.Domain.Enums;
|
||||
//پکیج
|
||||
public enum TransactionType
|
||||
{
|
||||
Buy = 0,
|
||||
DepositIpg = 1,
|
||||
DepositExternal1 = 2,
|
||||
Withdraw = 3,
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewFactorDetailsEvent : BaseEvent
|
||||
{
|
||||
public CreateNewFactorDetailsEvent(FactorDetails item)
|
||||
{
|
||||
}
|
||||
public FactorDetails Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteFactorDetailsEvent : BaseEvent
|
||||
{
|
||||
public DeleteFactorDetailsEvent(FactorDetails item)
|
||||
{
|
||||
}
|
||||
public FactorDetails Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateFactorDetailsEvent : BaseEvent
|
||||
{
|
||||
public UpdateFactorDetailsEvent(FactorDetails item)
|
||||
{
|
||||
}
|
||||
public FactorDetails Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewProductGallerysEvent : BaseEvent
|
||||
{
|
||||
public CreateNewProductGallerysEvent(ProductGallerys item)
|
||||
{
|
||||
}
|
||||
public ProductGallerys Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteProductGallerysEvent : BaseEvent
|
||||
{
|
||||
public DeleteProductGallerysEvent(ProductGallerys item)
|
||||
{
|
||||
}
|
||||
public ProductGallerys Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateProductGallerysEvent : BaseEvent
|
||||
{
|
||||
public UpdateProductGallerysEvent(ProductGallerys item)
|
||||
{
|
||||
}
|
||||
public ProductGallerys Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewProductImagesEvent : BaseEvent
|
||||
{
|
||||
public CreateNewProductImagesEvent(ProductImages item)
|
||||
{
|
||||
}
|
||||
public ProductImages Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteProductImagesEvent : BaseEvent
|
||||
{
|
||||
public DeleteProductImagesEvent(ProductImages item)
|
||||
{
|
||||
}
|
||||
public ProductImages Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateProductImagesEvent : BaseEvent
|
||||
{
|
||||
public UpdateProductImagesEvent(ProductImages item)
|
||||
{
|
||||
}
|
||||
public ProductImages Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewProductsEvent : BaseEvent
|
||||
{
|
||||
public CreateNewProductsEvent(Products item)
|
||||
{
|
||||
}
|
||||
public Products Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteProductsEvent : BaseEvent
|
||||
{
|
||||
public DeleteProductsEvent(Products item)
|
||||
{
|
||||
}
|
||||
public Products Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateProductsEvent : BaseEvent
|
||||
{
|
||||
public UpdateProductsEvent(Products item)
|
||||
{
|
||||
}
|
||||
public Products Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewTransactionsEvent : BaseEvent
|
||||
{
|
||||
public CreateNewTransactionsEvent(Transactions item)
|
||||
{
|
||||
}
|
||||
public Transactions Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteTransactionsEvent : BaseEvent
|
||||
{
|
||||
public DeleteTransactionsEvent(Transactions item)
|
||||
{
|
||||
}
|
||||
public Transactions Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateTransactionsEvent : BaseEvent
|
||||
{
|
||||
public UpdateTransactionsEvent(Transactions item)
|
||||
{
|
||||
}
|
||||
public Transactions Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewUserCartsEvent : BaseEvent
|
||||
{
|
||||
public CreateNewUserCartsEvent(UserCarts item)
|
||||
{
|
||||
}
|
||||
public UserCarts Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteUserCartsEvent : BaseEvent
|
||||
{
|
||||
public DeleteUserCartsEvent(UserCarts item)
|
||||
{
|
||||
}
|
||||
public UserCarts Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateUserCartsEvent : BaseEvent
|
||||
{
|
||||
public UpdateUserCartsEvent(UserCarts item)
|
||||
{
|
||||
}
|
||||
public UserCarts Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewUserWalletChangeLogEvent : BaseEvent
|
||||
{
|
||||
public CreateNewUserWalletChangeLogEvent(UserWalletChangeLog item)
|
||||
{
|
||||
}
|
||||
public UserWalletChangeLog Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteUserWalletChangeLogEvent : BaseEvent
|
||||
{
|
||||
public DeleteUserWalletChangeLogEvent(UserWalletChangeLog item)
|
||||
{
|
||||
}
|
||||
public UserWalletChangeLog Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateUserWalletChangeLogEvent : BaseEvent
|
||||
{
|
||||
public UpdateUserWalletChangeLogEvent(UserWalletChangeLog item)
|
||||
{
|
||||
}
|
||||
public UserWalletChangeLog Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewUserWalletEvent : BaseEvent
|
||||
{
|
||||
public CreateNewUserWalletEvent(UserWallet item)
|
||||
{
|
||||
}
|
||||
public UserWallet Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteUserWalletEvent : BaseEvent
|
||||
{
|
||||
public DeleteUserWalletEvent(UserWallet item)
|
||||
{
|
||||
}
|
||||
public UserWallet Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateUserWalletEvent : BaseEvent
|
||||
{
|
||||
public UpdateUserWalletEvent(UserWallet item)
|
||||
{
|
||||
}
|
||||
public UserWallet Item { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user