补上显示用户接口
This commit is contained in:
parent
ed776fa9b9
commit
1686ed4fbd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue