21 lines
338 B
Ruby
21 lines
338 B
Ruby
|
module Mobile
|
||
|
module Entities
|
||
|
class User < Grape::Entity
|
||
|
#头像
|
||
|
#昵称
|
||
|
expose :login
|
||
|
#性别
|
||
|
expose :gender do |user, opt|
|
||
|
user.user_extentions.gender
|
||
|
end
|
||
|
#我的二维码
|
||
|
#工作单位
|
||
|
#邮箱地址
|
||
|
expose :mail
|
||
|
#地区
|
||
|
#签名
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|