Merge branch 'newmain'

This commit is contained in:
masoodafar-web
2025-11-13 23:27:53 +03:30
parent c028809d08
commit c48a04d5f9
13 changed files with 280 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
using FrontOffice.BFF.User.Protobuf.Protos.User;
using FrontOffice.BFF.Protobuf.Protos.User;
using FrontOffice.BFF.WebApi.Common.Services;
using FrontOffice.BFF.Application.UserCQ.Commands.UpdateUser;
using FrontOffice.BFF.Application.UserCQ.Commands.DeleteUser;
@@ -6,6 +6,8 @@ using FrontOffice.BFF.Application.UserCQ.Queries.GetUser;
using FrontOffice.BFF.Application.UserCQ.Queries.GetAllUserByFilter;
using FrontOffice.BFF.Application.UserCQ.Commands.CreateNewOtpToken;
using FrontOffice.BFF.Application.UserCQ.Commands.VerifyOtpToken;
using FrontOffice.BFF.Application.UserCQ.Queries.AdminGetJwtToken;
using FrontOffice.BFF.Application.UserCQ.Commands.SetPasswordForUser;
namespace FrontOffice.BFF.WebApi.Services;
public class UserService : UserContract.UserContractBase
{
@@ -39,4 +41,12 @@ public class UserService : UserContract.UserContractBase
{
return await _dispatchRequestToCQRS.Handle<VerifyOtpTokenRequest, VerifyOtpTokenCommand, VerifyOtpTokenResponse>(request, context);
}
public override async Task<AdminGetJwtTokenResponse> AdminGetJwtToken(AdminGetJwtTokenRequest request, ServerCallContext context)
{
return await _dispatchRequestToCQRS.Handle<AdminGetJwtTokenRequest, AdminGetJwtTokenQuery, AdminGetJwtTokenResponse>(request, context);
}
public override async Task<Empty> SetPasswordForUser(SetPasswordForUserRequest request, ServerCallContext context)
{
return await _dispatchRequestToCQRS.Handle<SetPasswordForUserRequest, SetPasswordForUserCommand>(request, context);
}
}