Generator Changes at 11/25/2025 2:47:13 AM +03:30

This commit is contained in:
masoodafar-web
2025-11-25 02:50:11 +03:30
parent 34f66fcb2d
commit 90e260eb30
6 changed files with 39 additions and 15 deletions

View File

@@ -1,10 +1,9 @@
using FrontOffice.BFF.Protobuf.Protos.UserWallet;
using FrontOffice.BFF.WebApi.Common.Services;
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.UserWallet.Protobuf.Protos.UserWallet;
namespace FrontOffice.BFF.WebApi.Services;
public class UserWalletService : UserWalletContract.UserWalletContractBase
{
@@ -14,9 +13,9 @@ public class UserWalletService : UserWalletContract.UserWalletContractBase
{
_dispatchRequestToCQRS = dispatchRequestToCQRS;
}
public override async Task<Empty> GetAllUserWalletChangeLog(Empty request, ServerCallContext context)
public override async Task<GetAllUserWalletChangeLogResponse> GetAllUserWalletChangeLog(Empty request, ServerCallContext context)
{
return await _dispatchRequestToCQRS.Handle<GetAllUserWalletChangeLogQuery, Empty>(context);
return await _dispatchRequestToCQRS.Handle<GetAllUserWalletChangeLogQuery, GetAllUserWalletChangeLogResponse>(context);
}
public override async Task<GetUserWalletResponse> GetUserWallet(Empty request, ServerCallContext context)
{
@@ -26,8 +25,8 @@ public class UserWalletService : UserWalletContract.UserWalletContractBase
{
return await _dispatchRequestToCQRS.Handle<TransferUserWalletBallanceCommand, Empty>(context);
}
public override async Task<GetAllUserWalletChangeLogResponse> WithdrawBalance(Empty request, ServerCallContext context)
public override async Task<Empty> WithdrawBalance(Empty request, ServerCallContext context)
{
return await _dispatchRequestToCQRS.Handle<WithdrawBalanceCommand, GetAllUserWalletChangeLogResponse>(context);
return await _dispatchRequestToCQRS.Handle<WithdrawBalanceCommand, Empty>(context);
}
}