fix: unify user ID type to string and rename service to users-api
This commit is contained in:
@@ -7,12 +7,14 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"juwan-backend/app/users/rpc/pb"
|
||||
"juwan-backend/app/users/rpc/usercenter"
|
||||
"juwan-backend/common/utils/contextj"
|
||||
"juwan-backend/common/utils/pwdUtils"
|
||||
"regexp"
|
||||
"time"
|
||||
|
||||
"juwan-backend/app/users/api/internal/svc"
|
||||
"juwan-backend/app/users/api/internal/types"
|
||||
@@ -95,6 +97,7 @@ func (l *RegisterLogic) Register(req *types.RegisterReq) (*types.RegisterResp, s
|
||||
logx.Errorf("copier.Copy err: %v", err)
|
||||
return nil, "", errors.New("copy user failed")
|
||||
}
|
||||
user.Id = strconv.FormatInt(userResp.Users.Id, 10)
|
||||
var verificationStatus map[string]string
|
||||
err = json.Unmarshal([]byte(userResp.Users.VerificationStatus), &verificationStatus)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user