update
This commit is contained in:
@@ -3,6 +3,8 @@ using FrontOffice.BFF.Application.UserWalletCQ.Queries.GetAllUserWalletChangeLog
|
||||
using FrontOffice.BFF.Application.UserWalletCQ.Queries.GetUserWallet;
|
||||
using FrontOffice.BFF.Application.UserWalletCQ.Commands.TransferUserWalletBallance;
|
||||
using FrontOffice.BFF.Application.UserWalletCQ.Commands.WithdrawBalance;
|
||||
using FrontOffice.BFF.Application.UserWalletCQ.Queries.GetUserWithdrawals;
|
||||
using FrontOffice.BFF.Application.UserWalletCQ.Queries.GetWithdrawalSettings;
|
||||
using FrontOffice.BFF.UserWallet.Protobuf.Protos.UserWallet;
|
||||
|
||||
namespace FrontOffice.BFF.WebApi.Services;
|
||||
@@ -14,9 +16,9 @@ public class UserWalletService : UserWalletContract.UserWalletContractBase
|
||||
{
|
||||
_dispatchRequestToCQRS = dispatchRequestToCQRS;
|
||||
}
|
||||
public override async Task<GetAllUserWalletChangeLogResponse> GetAllUserWalletChangeLog(Empty request, ServerCallContext context)
|
||||
public override async Task<GetAllUserWalletChangeLogResponse> GetAllUserWalletChangeLog(GetAllUserWalletChangeLogRequest request, ServerCallContext context)
|
||||
{
|
||||
return await _dispatchRequestToCQRS.Handle<GetAllUserWalletChangeLogQuery, GetAllUserWalletChangeLogResponse>(context);
|
||||
return await _dispatchRequestToCQRS.Handle<GetAllUserWalletChangeLogRequest, GetAllUserWalletChangeLogQuery, GetAllUserWalletChangeLogResponse>(request, context);
|
||||
}
|
||||
public override async Task<GetUserWalletResponse> GetUserWallet(Empty request, ServerCallContext context)
|
||||
{
|
||||
@@ -26,8 +28,16 @@ public class UserWalletService : UserWalletContract.UserWalletContractBase
|
||||
{
|
||||
return await _dispatchRequestToCQRS.Handle<TransferUserWalletBallanceCommand, Empty>(context);
|
||||
}
|
||||
public override async Task<Empty> WithdrawBalance(Empty request, ServerCallContext context)
|
||||
public override async Task<Empty> WithdrawBalance(WithdrawBalanceRequest request, ServerCallContext context)
|
||||
{
|
||||
return await _dispatchRequestToCQRS.Handle<WithdrawBalanceCommand, Empty>(context);
|
||||
return await _dispatchRequestToCQRS.Handle<WithdrawBalanceRequest, WithdrawBalanceCommand, Empty>(request, context);
|
||||
}
|
||||
public override async Task<GetUserWithdrawalsResponse> GetUserWithdrawals(GetUserWithdrawalsRequest request, ServerCallContext context)
|
||||
{
|
||||
return await _dispatchRequestToCQRS.Handle<GetUserWithdrawalsRequest, GetUserWithdrawalsQuery, GetUserWithdrawalsResponse>(request, context);
|
||||
}
|
||||
public override async Task<GetWithdrawalSettingsResponse> GetWithdrawalSettings(Empty request, ServerCallContext context)
|
||||
{
|
||||
return await _dispatchRequestToCQRS.Handle<GetWithdrawalSettingsQuery, GetWithdrawalSettingsResponse>(context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user