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
23 lines
813 B
C#
23 lines
813 B
C#
namespace CMSMicroservice.Application.ClubMembershipCQ.Queries.GetClubMembershipHistory;
|
|
|
|
public class GetClubMembershipHistoryResponseDto
|
|
{
|
|
public MetaData MetaData { get; set; }
|
|
public List<GetClubMembershipHistoryResponseModel> Models { get; set; }
|
|
}
|
|
|
|
public class GetClubMembershipHistoryResponseModel
|
|
{
|
|
public long Id { get; set; }
|
|
public long ClubMembershipId { get; set; }
|
|
public long UserId { get; set; }
|
|
public bool OldIsActive { get; set; }
|
|
public bool NewIsActive { get; set; }
|
|
public long? OldInitialContribution { get; set; }
|
|
public long? NewInitialContribution { get; set; }
|
|
public ClubMembershipAction Action { get; set; }
|
|
public string? Reason { get; set; }
|
|
public string? PerformedBy { get; set; }
|
|
public DateTimeOffset Created { get; set; }
|
|
}
|