- 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.
22 lines
475 B
C#
22 lines
475 B
C#
namespace WalletService.API.Application.Commands;
|
|
|
|
using MediatR;
|
|
|
|
/// <summary>
|
|
/// EN: Command to create a new wallet for a user
|
|
/// VI: Command để tạo ví mới cho người dùng
|
|
/// </summary>
|
|
public record CreateWalletCommand(
|
|
Guid UserId,
|
|
string Currency = "VND"
|
|
) : IRequest<CreateWalletResult>;
|
|
|
|
public record CreateWalletResult(
|
|
Guid WalletId,
|
|
Guid UserId,
|
|
decimal Balance,
|
|
string Currency,
|
|
string Status,
|
|
DateTime CreatedAt
|
|
);
|