fe66d478ee
- Implemented 3 Commands with handlers and validators: * ActivateClubMembership: Create/reactivate membership * DeactivateClubMembership: Deactivate existing membership * AssignClubFeature: Assign features to club members - Implemented 3 Queries with handlers, validators, and DTOs: * GetClubMembership: Retrieve single membership by UserId * GetAllClubMemberships: List with filtering and pagination * GetClubMembershipHistory: Audit trail with full history - All operations include history tracking via ClubMembershipHistory - Property names aligned with Domain entity definitions - 21 new files, ~600 lines of code - Build successful with 0 errors
28 lines
813 B
C#
28 lines
813 B
C#
namespace CMSMicroservice.Application.ClubMembershipCQ.Queries.GetClubMembershipHistory;
|
|
|
|
/// <summary>
|
|
/// Query برای دریافت تاریخچه تغییرات عضویت باشگاه
|
|
/// </summary>
|
|
public record GetClubMembershipHistoryQuery : IRequest<GetClubMembershipHistoryResponseDto>
|
|
{
|
|
/// <summary>
|
|
/// شناسه عضویت (اختیاری)
|
|
/// </summary>
|
|
public long? MembershipId { get; init; }
|
|
|
|
/// <summary>
|
|
/// شناسه کاربر (اختیاری)
|
|
/// </summary>
|
|
public long? UserId { get; init; }
|
|
|
|
/// <summary>
|
|
/// موقعیت صفحهبندی
|
|
/// </summary>
|
|
public PaginationState? PaginationState { get; init; }
|
|
|
|
/// <summary>
|
|
/// مرتبسازی بر اساس
|
|
/// </summary>
|
|
public string? SortBy { get; init; }
|
|
}
|