- 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.
33 lines
723 B
C#
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
|
|
);
|