...
|
...
|
@@ -117,8 +117,8 @@ func (srv UserService) UpdateUserBaseInfo(updateUserInfoCommand *command.UpdateU |
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(domain.Operator{})
|
|
|
user, err := creationUserGateway.UserGet(allied_creation_user.ReqGetUser{
|
|
|
UserId: int(updateUserInfoCommand.Operator.UserId),
|
|
|
user, err := creationUserGateway.AuthUserBaseInfo(allied_creation_user.ReqAuthUserBase{
|
|
|
Account: updateUserInfoCommand.Operator.Phone,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "用户不存在")
|
...
|
...
|
@@ -143,7 +143,7 @@ func (srv UserService) UpdateUserBaseInfo(updateUserInfoCommand *command.UpdateU |
|
|
}
|
|
|
}
|
|
|
_, err = creationUserGateway.UserUpdateBaseInfo(allied_creation_user.ReqUserUpdateBaseInfo{
|
|
|
UserId: int64(user.UserId),
|
|
|
UserBaseId: int64(user.UserBaseID),
|
|
|
UserName: updateUserInfoCommand.UserName,
|
|
|
Avatar: updateUserInfoCommand.Avatar,
|
|
|
Phone: updateUserInfoCommand.Phone,
|
...
|
...
|
|