2020-03-09 00:40:16 +08:00
|
|
|
json.username @user.full_name
|
|
|
|
|
json.real_name @user.real_name
|
2021-09-02 11:48:53 +08:00
|
|
|
json.nickname @user.nickname
|
2021-06-03 15:22:08 +08:00
|
|
|
json.gender @user.gender
|
2020-03-09 00:40:16 +08:00
|
|
|
json.login @user.login
|
|
|
|
|
json.user_id @user.id
|
|
|
|
|
json.image_url url_to_avatar(@user)
|
|
|
|
|
json.admin @user.admin?
|
|
|
|
|
json.is_teacher @user.user_extension&.teacher?
|
|
|
|
|
json.user_identity @user.identity
|
|
|
|
|
json.tidding_count 0
|
2020-04-21 14:54:11 +08:00
|
|
|
json.user_phone_binded @user.phone.present?
|
2020-04-21 14:48:52 +08:00
|
|
|
# json.phone @user.phone
|
|
|
|
|
# json.email @user.mail
|
2021-09-18 10:24:16 +08:00
|
|
|
json.profile_completed @user.profile_is_completed?
|
2020-03-09 00:40:16 +08:00
|
|
|
json.professional_certification @user.professional_certification
|
2020-08-06 14:26:19 +08:00
|
|
|
json.devops_step @user.devops_step
|
2020-09-23 11:06:54 +08:00
|
|
|
json.ci_certification @user.ci_certification?
|
2021-06-03 11:56:32 +08:00
|
|
|
json.email @user.mail
|
|
|
|
|
json.province @user.province
|
|
|
|
|
json.city @user.city
|
|
|
|
|
json.custom_department @user.custom_department
|
|
|
|
|
json.description @user.description
|
2021-09-09 16:32:13 +08:00
|
|
|
json.(@user, :show_email, :show_department, :show_location)
|
2021-09-22 14:43:04 +08:00
|
|
|
json.message_unread_total @message_unread_total
|