|
|
@@ -41,7 +41,7 @@ func (l *UpdateUserLogic) UpdateUser(r *http.Request) (*types.Response, error) {
|
|
|
return &types.Response{500, err.Error(), nil}, nil
|
|
|
}
|
|
|
user.Id = userId
|
|
|
- _, err = l.svcCtx.DB.ID(user.Id).Cols("mobile", "avatar").Update(user)
|
|
|
+ _, err = l.svcCtx.DB.ID(user.Id).Cols("avatar").Update(user)
|
|
|
if err != nil {
|
|
|
logx.Error(err.Error())
|
|
|
return &types.Response{500, err.Error(), nil}, nil
|