mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
8
app/views/users/_user.json.jbuilder
Normal file
8
app/views/users/_user.json.jbuilder
Normal file
@@ -0,0 +1,8 @@
|
||||
json.user_id user.id
|
||||
json.login user.login
|
||||
json.name user.full_name
|
||||
json.grade user.grade
|
||||
json.identity user&.user_extension&.identity
|
||||
# json.email user.mail # 邮箱原则上不暴露的,如果实在需要的话只能对某些具体的接口公开
|
||||
json.image_url url_to_avatar(user)
|
||||
json.school user.school_name
|
||||
Reference in New Issue
Block a user