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.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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
|
||||
);
|
||||
Reference in New Issue
Block a user