add: user and organization merge show api

This commit is contained in:
2021-08-25 16:14:41 +08:00
parent 40c6425aee
commit 039779339a
4 changed files with 81 additions and 19 deletions

View File

@@ -1,20 +1,20 @@
json.user_id user.id
json.name user.full_name
json.username @user.full_name
json.real_name @user.real_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
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