Improvements for RIDYGO

This commit is contained in:
2023-03-29 12:59:08 +02:00
parent e2ff98094b
commit a76c0412a3
11 changed files with 577 additions and 184 deletions

View File

@@ -63,6 +63,18 @@ func (s MobilityAccountsServerImpl) UpdateData(ctx context.Context, req *UpdateD
}
return &UpdateDataResponse{Account: response}, nil
}
func (s MobilityAccountsServerImpl) UpdatePhoneNumber(ctx context.Context, req *UpdatePhoneNumberRequest) (*UpdatePhoneNumberResponse, error) {
err := s.handler.UpdatePhoneNumber(
req.Id,
req.PhoneNumber,
req.Verified,
req.VerificationCode,
)
if err != nil {
return nil, status.Errorf(codes.Internal, "issue while updating phone number : %v", err)
}
return &UpdatePhoneNumberResponse{Ok: true}, nil
}
func (s MobilityAccountsServerImpl) GetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error) {
account, err := s.handler.GetAccount(req.Id)
if err != nil {