Files
pos-system/services/wallet-service-net/src/WalletService.API/Application/Queries/GetPointTransactionsQuery.cs
Ho Ngoc Hai 4a1a0ef79c feat(storage-service): Add Social Service to Docker Compose and enhance IAM service integration
- Introduced a new social-service in the Docker Compose configuration for local development, including build context, environment variables, and health checks.
- Updated architecture documentation to reflect the new storage service structure and its components, including user storage quotas and file management.
- Enhanced README files to provide clearer instructions on service setup, configuration, and API endpoints for file storage management.
- Implemented caching mechanisms in the IAM service client for improved performance and reduced latency in user information retrieval.
- Updated appsettings for development to include caching settings for IAM service interactions.
2026-01-13 00:28:41 +07:00

33 lines
723 B
C#

namespace WalletService.API.Application.Queries;
using MediatR;
/// <summary>
/// EN: Query to get point transactions with pagination
/// VI: Query để lấy lịch sử giao dịch điểm với phân trang
/// </summary>
public record GetPointTransactionsQuery(
Guid UserId,
int Page = 1,
int PageSize = 20
) : IRequest<PointTransactionsDto>;
public record PointTransactionsDto(
IEnumerable<PointTransactionDto> Transactions,
int TotalCount,
int Page,
int PageSize,
int TotalPages
);
public record PointTransactionDto(
Guid Id,
long Points,
string Type,
string Source,
string Description,
long BalanceAfter,
DateTime CreatedAt,
DateTime? ExpiresAt
);