关注列表返回优化
This commit is contained in:
parent
df18eac875
commit
4df9544770
|
@ -14,7 +14,6 @@ module Mobile
|
|||
us = UsersService.new
|
||||
user = us.register params.merge(:password_confirmation => params[:password],
|
||||
:should_confirmation_password => true)
|
||||
binding.pry
|
||||
raise "register failed #{user.errors.full_messages}" if user.new_record?
|
||||
|
||||
present :data, user, with: Mobile::Entities::User
|
||||
|
|
|
@ -12,7 +12,8 @@ module Mobile
|
|||
authenticate!
|
||||
us = UsersService.new
|
||||
ws = us.user_watcher(id: current_user.id)
|
||||
{status: 0, data: ws }
|
||||
present :data, ws, with: Mobile::Entities::User
|
||||
present :status, 0
|
||||
end
|
||||
|
||||
|
||||
|
@ -44,4 +45,4 @@ module Mobile
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue