|
|
@ -82,7 +82,7 @@ module Mobile
|
|
|
|
desc "用户搜索"
|
|
|
|
desc "用户搜索"
|
|
|
|
params do
|
|
|
|
params do
|
|
|
|
requires :name, type: String, desc: '用户名关键字'
|
|
|
|
requires :name, type: String, desc: '用户名关键字'
|
|
|
|
requires :search_by, type: String,desc: '搜索依据:0 昵称,1 用户名,2 邮箱'
|
|
|
|
requires :search_by, type: String,desc: '搜索依据:0 昵称,1 用户名,2 邮箱,3 昵称和姓名'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
get 'search/search_user' do
|
|
|
|
get 'search/search_user' do
|
|
|
|
us = UsersService.new
|
|
|
|
us = UsersService.new
|
|
|
|