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.
2025-12-04 02:40:49 +03:30
|
|
|
using CMSMicroservice.Domain.Enums;
|
|
|
|
|
|
|
|
|
|
namespace CMSMicroservice.Application.PublicMessageCQ.Queries.GetAllMessages;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DTO پیام عمومی برای Admin (با اطلاعات بیشتر)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class AdminPublicMessageDto
|
|
|
|
|
{
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
|
public string Content { get; set; } = string.Empty;
|
|
|
|
|
public MessageType Type { get; set; }
|
|
|
|
|
public string TypeName { get; set; } = string.Empty;
|
|
|
|
|
public MessagePriority Priority { get; set; }
|
|
|
|
|
public string PriorityName { get; set; } = string.Empty;
|
|
|
|
|
public bool IsActive { get; set; }
|
2025-12-04 03:43:19 +03:30
|
|
|
public DateTime? StartsAt { get; set; }
|
|
|
|
|
public DateTime? ExpiresAt { get; set; }
|
|
|
|
|
public long? CreatedByUserId { get; set; }
|
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.
2025-12-04 02:40:49 +03:30
|
|
|
public int ViewCount { get; set; }
|
|
|
|
|
public string? LinkUrl { get; set; }
|
|
|
|
|
public string? LinkText { get; set; }
|
|
|
|
|
public DateTime Created { get; set; }
|
|
|
|
|
public DateTime? LastModified { get; set; }
|
|
|
|
|
public bool IsExpired { get; set; }
|
|
|
|
|
}
|