You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
971 B
40 lines
971 B
<?php
|
|
|
|
namespace app\admin\controller\setting;
|
|
|
|
use app\admin\controller\AdminBaseController;
|
|
use app\admin\service\setting\StockMarketService;
|
|
|
|
// 股票市场
|
|
class StockMarket extends AdminBaseController
|
|
{
|
|
|
|
public function index()
|
|
{
|
|
$service = new StockMarketService();
|
|
$result = $service->index();
|
|
return json($result);
|
|
}
|
|
|
|
public function add()
|
|
{
|
|
$service = new StockMarketService();
|
|
$result = $service->add($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
public function edit()
|
|
{
|
|
$service = new StockMarketService();
|
|
$result = $service->edit($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 股票筛选 根据股票号 股票市场 模糊搜索股票数据
|
|
public function searchStock()
|
|
{
|
|
$service = new StockMarketService();
|
|
$result = $service->searchStock($this->request->param());
|
|
return json($result);
|
|
}
|
|
}
|