diff --git a/requestUserMapper.go b/requestUserMapper.go index 4aade53..81e967f 100644 --- a/requestUserMapper.go +++ b/requestUserMapper.go @@ -17,6 +17,7 @@ func (rum RequestUserMapper) ConvertUser(user *User) requestUser { Phone: user.Phone, UserID: user.UserID, Name: user.Name, + Avatar: user.Avatar, SignedUpAt: user.SignedUpAt, RemoteCreatedAt: user.RemoteCreatedAt, LastRequestAt: user.LastRequestAt, diff --git a/user_api.go b/user_api.go index 9ccba6c..234b013 100644 --- a/user_api.go +++ b/user_api.go @@ -31,6 +31,7 @@ type requestUser struct { Phone string `json:"phone,omitempty"` UserID string `json:"user_id,omitempty"` Name string `json:"name,omitempty"` + Avatar *UserAvatar `json:"avatar,omitempty"` SignedUpAt int64 `json:"signed_up_at,omitempty"` RemoteCreatedAt int64 `json:"remote_created_at,omitempty"` LastRequestAt int64 `json:"last_request_at,omitempty"`