update
This commit is contained in:
1305
docs/model.ndm2
1305
docs/model.ndm2
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,5 @@
|
|||||||
|
using CMSMicroservice.Protobuf.Protos.OtpToken;
|
||||||
|
|
||||||
namespace FrontOffice.BFF.Application.UserCQ.Commands.CreateContractOtpToken;
|
namespace FrontOffice.BFF.Application.UserCQ.Commands.CreateContractOtpToken;
|
||||||
public class CreateContractOtpTokenCommandHandler : IRequestHandler<CreateContractOtpTokenCommand, Unit>
|
public class CreateContractOtpTokenCommandHandler : IRequestHandler<CreateContractOtpTokenCommand, Unit>
|
||||||
{
|
{
|
||||||
@@ -10,7 +12,11 @@ public class CreateContractOtpTokenCommandHandler : IRequestHandler<CreateContra
|
|||||||
|
|
||||||
public async Task<Unit> Handle(CreateContractOtpTokenCommand request, CancellationToken cancellationToken)
|
public async Task<Unit> Handle(CreateContractOtpTokenCommand request, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
//TODO: Implement your business logic
|
var response = await _context.OtpToken.CreateNewOtpTokenAsync(request: new CreateNewOtpTokenRequest()
|
||||||
return new Unit();
|
{
|
||||||
|
|
||||||
|
}, cancellationToken: cancellationToken);
|
||||||
|
if (response.Success && !string.IsNullOrWhiteSpace(response.Code))
|
||||||
|
await _kavenegarService.VerifyLookup(mobile: request.Mobile, response.Code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using FrontOffice.BFF.Protobuf.Protos.User;
|
using FrontOffice.BFF.Application.UserCQ.Commands.AcceptContract;
|
||||||
|
using FrontOffice.BFF.Application.UserCQ.Commands.CreateContractOtpToken;
|
||||||
using FrontOffice.BFF.WebApi.Common.Services;
|
using FrontOffice.BFF.WebApi.Common.Services;
|
||||||
using FrontOffice.BFF.Application.UserCQ.Commands.UpdateUser;
|
using FrontOffice.BFF.Application.UserCQ.Commands.UpdateUser;
|
||||||
using FrontOffice.BFF.Application.UserCQ.Commands.DeleteUser;
|
using FrontOffice.BFF.Application.UserCQ.Commands.DeleteUser;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using FluentValidation;
|
using FluentValidation;
|
||||||
using FrontOfficeMicroservice.Protobuf.Protos.User;
|
using FrontOffice.BFF.User.Protobuf.Protos.User;
|
||||||
namespace FrontOfficeMicroservice.Protobuf.Validator.User;
|
namespace FrontOfficeMicroservice.Protobuf.Validator.User;
|
||||||
|
|
||||||
public class AcceptContractRequestValidator : AbstractValidator<AcceptContractRequest>
|
public class AcceptContractRequestValidator : AbstractValidator<AcceptContractRequest>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using FluentValidation;
|
using FluentValidation;
|
||||||
using FrontOfficeMicroservice.Protobuf.Protos.User;
|
using FrontOffice.BFF.User.Protobuf.Protos.User;
|
||||||
namespace FrontOfficeMicroservice.Protobuf.Validator.User;
|
namespace FrontOfficeMicroservice.Protobuf.Validator.User;
|
||||||
|
|
||||||
public class CreateContractOtpTokenRequestValidator : AbstractValidator<CreateContractOtpTokenRequest>
|
public class CreateContractOtpTokenRequestValidator : AbstractValidator<CreateContractOtpTokenRequest>
|
||||||
|
|||||||
Reference in New Issue
Block a user