关注返回规范化

This commit is contained in:
guange 2014-12-18 13:37:23 +08:00
parent bb23468c7d
commit 03f2c9c192
2 changed files with 1343 additions and 1330 deletions

View File

@ -25,8 +25,9 @@ module Mobile
post do
authenticate!
ws = WatchesService.new
o = ws.watch(params.merge({current_user_id:current_user.id, object_type:'user' }) )
{status:0, data: o}
o = ws.watch(params.merge({current_user_id:current_user.id, object_type:'user' }) )
present :data, o, with: Mobile::Entities::User
present :status, 0
end

File diff suppressed because it is too large Load Diff