2024-04-22 13:33:39 +03:30
|
|
|
|
namespace Netina.Domain.CommandQueries.Commands;
|
2023-12-20 10:37:44 +03:30
|
|
|
|
|
|
|
|
|
|
public sealed record CreateProductCommand(
|
2024-08-07 16:15:53 +03:30
|
|
|
|
string PersianName,
|
|
|
|
|
|
string EnglishName,
|
|
|
|
|
|
string Summery,
|
|
|
|
|
|
string ExpertCheck,
|
|
|
|
|
|
string Tags,
|
|
|
|
|
|
string Warranty,
|
|
|
|
|
|
bool BeDisplayed,
|
|
|
|
|
|
double Cost,
|
|
|
|
|
|
double PackingCost,
|
|
|
|
|
|
int Stock,
|
|
|
|
|
|
bool HasExpressDelivery,
|
|
|
|
|
|
int MaxOrderCount,
|
|
|
|
|
|
bool IsSpecialOffer,
|
|
|
|
|
|
Guid BrandId,
|
|
|
|
|
|
Guid CategoryId,
|
|
|
|
|
|
DiscountSDto SpecialOffer,
|
|
|
|
|
|
List<SpecificationSDto> Specifications,
|
|
|
|
|
|
List<StorageFileSDto> Files,
|
|
|
|
|
|
Dictionary<string, string> Faqs,
|
|
|
|
|
|
Dictionary<string, string> MetaTags) : IRequest<ProductLDto>;
|
2023-12-20 10:37:44 +03:30
|
|
|
|
|
|
|
|
|
|
public sealed record UpdateProductCommand(
|
|
|
|
|
|
Guid Id,
|
|
|
|
|
|
string PersianName,
|
|
|
|
|
|
string EnglishName,
|
|
|
|
|
|
string Summery,
|
|
|
|
|
|
string ExpertCheck,
|
|
|
|
|
|
string Tags,
|
|
|
|
|
|
string Warranty,
|
2023-12-31 19:55:22 +03:30
|
|
|
|
bool BeDisplayed,
|
|
|
|
|
|
double Cost,
|
|
|
|
|
|
double PackingCost,
|
2024-02-09 19:43:17 +03:30
|
|
|
|
int Stock,
|
2024-01-23 14:06:20 +03:30
|
|
|
|
bool HasExpressDelivery,
|
|
|
|
|
|
int MaxOrderCount,
|
2024-02-03 10:34:48 +03:30
|
|
|
|
bool IsSpecialOffer,
|
2023-12-20 10:37:44 +03:30
|
|
|
|
Guid BrandId,
|
2023-12-31 19:55:22 +03:30
|
|
|
|
Guid CategoryId,
|
2024-02-03 10:34:48 +03:30
|
|
|
|
DiscountSDto SpecialOffer,
|
2023-12-20 10:37:44 +03:30
|
|
|
|
List<SpecificationSDto> Specifications,
|
2024-08-07 16:15:53 +03:30
|
|
|
|
List<StorageFileSDto> Files,
|
|
|
|
|
|
Dictionary<string, string> Faqs,
|
|
|
|
|
|
Dictionary<string, string> MetaTags) : IRequest<bool>;
|
|
|
|
|
|
|
|
|
|
|
|
public sealed record ChangeProductDisplayedCommand(Guid Id, bool BeDisplayed) : IRequest<bool>;
|
2024-02-03 10:34:48 +03:30
|
|
|
|
|
2024-08-07 16:15:53 +03:30
|
|
|
|
public sealed record ChangeProductCostCommand(Guid Id, double Cost) : IRequest<bool>;
|
2024-02-22 20:34:51 +03:30
|
|
|
|
|
2024-02-10 14:00:31 +03:30
|
|
|
|
public sealed record DeleteProductCommand(Guid Id) : IRequest<bool>;
|
|
|
|
|
|
|
2024-02-16 18:07:00 +03:30
|
|
|
|
public sealed record CalculateProductDiscountCommand(object Product) : IRequest<bool>;
|