socialforge/app/api/mobile/entities/user.rb

24 lines
399 B
Ruby
Raw Normal View History

2014-12-09 16:36:43 +08:00
module Mobile
module Entities
class User < Grape::Entity
2014-12-09 16:57:08 +08:00
expose :id
2014-12-09 16:36:43 +08:00
#头像
2014-12-09 16:57:08 +08:00
expose :img_url
2014-12-09 16:36:43 +08:00
#昵称
2014-12-09 16:57:08 +08:00
expose :nickname
2014-12-09 16:36:43 +08:00
#性别
2014-12-09 16:57:08 +08:00
expose :gender
2014-12-09 16:36:43 +08:00
#我的二维码
#工作单位
2014-12-09 16:57:08 +08:00
expose :work_unit
2014-12-09 16:36:43 +08:00
#邮箱地址
expose :mail
#地区
2014-12-09 16:57:08 +08:00
expose :location
2014-12-09 16:36:43 +08:00
#签名
2014-12-09 16:57:08 +08:00
expose :brief_introduction
2014-12-09 16:36:43 +08:00
end
end
end