forked from Gitlink/forgeplus
20 lines
744 B
Ruby
20 lines
744 B
Ruby
json.user_id user.id
|
|
json.name user.full_name
|
|
json.username user.full_name
|
|
json.real_name user.real_name
|
|
json.grade user.grade
|
|
json.gender user.gender
|
|
json.login user.login
|
|
json.user_id user.id
|
|
json.image_url url_to_avatar(user)
|
|
json.admin user.admin?
|
|
json.user_identity user.identity
|
|
json.is_watch current_user&.watched?(user)
|
|
json.watched_count user.fan_count #粉丝
|
|
json.watching_count user.follow_count #关注数
|
|
json.created_time format_time(user.created_on)
|
|
json.email user.show_email ? user.mail : nil
|
|
json.province user.show_location ? user.province : nil
|
|
json.city user.show_location ? user.city : nil
|
|
json.custom_department user.show_department ? user.custom_department : nil
|
|
json.description user.description |