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