p2 project
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.

39 lines
874 B

5 months ago
<?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);
}
3 months ago
// 印度股指列表
public function inrStockIndexList()
{
$result = (new StockIndexService())->inrStockIndexList($this->request->param());
return json($result);
}
// 印度股指名称列表
public function getTradeNameList()
{
$result = (new StockIndexService())->getTradeNameList();
return json($result);
}
5 months ago
}