25 lines
497 B
25 lines
497 B
<?php
|
|
|
|
namespace app\admin\controller\setting;
|
|
|
|
use app\admin\controller\AdminBaseController;
|
|
use app\admin\service\setting\StockIndexService;
|
|
|
|
/**
|
|
* 股票指数操作
|
|
*/
|
|
class StockIndex extends AdminBaseController
|
|
{
|
|
|
|
public function index()
|
|
{
|
|
$result = (new StockIndexService())->index();
|
|
return json($result);
|
|
}
|
|
|
|
public function update()
|
|
{
|
|
$result = (new StockIndexService())->update($this->request->param());
|
|
return json($result);
|
|
}
|
|
}
|