补上显示用户接口

This commit is contained in:
z9hang 2015-01-06 16:59:22 +08:00
parent ed776fa9b9
commit 1686ed4fbd
1 changed files with 10 additions and 0 deletions

View File

@ -20,6 +20,16 @@ module Mobile
present :status, 0
end
desc "显示用户"
params do
end
get ':id' do
us = UsersService.new
ue = us.show_user params
present :data, ue,with: Mobile::Entities::User
present :status, 0
end
desc "修改用户"
params do