|
@@ -6,14 +6,18 @@ use App\Http\Controllers\Web\WebBaseController;
|
|
|
use App\Services\Common\SmsService;
|
|
|
use App\Models\Member;
|
|
|
use Illuminate\Http\Request;
|
|
|
+use App\Services\Common\SearchService;
|
|
|
|
|
|
class ShuoboController extends WebBaseController
|
|
|
{
|
|
|
|
|
|
private $smsService;
|
|
|
- public function __construct(SmsService $smsService)
|
|
|
+ protected $searchService;
|
|
|
+
|
|
|
+ public function __construct(SmsService $smsService,SearchService $searchService)
|
|
|
{
|
|
|
$this->smsService = $smsService;
|
|
|
+ $this->searchService = $searchService;
|
|
|
}
|
|
|
|
|
|
public function talent()
|
|
@@ -26,6 +30,8 @@ class ShuoboController extends WebBaseController
|
|
|
{
|
|
|
$keyword = $request->input('keyword');
|
|
|
$page = $request->input('page');
|
|
|
+ $list = $this->searchService->search('Shuobo', [], [], $keyword,10,$page);
|
|
|
+ dd($list);
|
|
|
|
|
|
return json_encode([]);
|
|
|
}
|