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.
41 lines
1.1 KiB
41 lines
1.1 KiB
2 months ago
|
<?php
|
||
|
|
||
|
namespace app\admin\controller\setting;
|
||
|
|
||
|
use app\admin\controller\AdminBaseController;
|
||
|
use app\admin\service\setting\IPOService;
|
||
|
use app\admin\service\setting\StockService;
|
||
|
|
||
|
// 股票交易对
|
||
|
class Stock extends AdminBaseController
|
||
|
{
|
||
|
|
||
|
public function index()
|
||
|
{
|
||
|
$market_type=$this->request->param('market_type');
|
||
|
$result = (new IPOService())->stockList($market_type,$this->request->param());
|
||
|
return json($result);
|
||
|
}
|
||
|
|
||
|
public function add()
|
||
|
{
|
||
|
$market_type=$this->request->param('market_type');
|
||
|
$result = (new IPOService())->addStock($market_type,$this->request->param());
|
||
|
return json($result);
|
||
|
}
|
||
|
|
||
|
|
||
|
public function edit()
|
||
|
{
|
||
|
$market_type=$this->request->param('market_type');
|
||
|
$result = (new IPOService())->editStock($market_type,$this->request->param());
|
||
|
return json($result);
|
||
|
}
|
||
|
|
||
|
public function getTradeNameList()
|
||
|
{
|
||
|
$market_type=$this->request->param('market_type');
|
||
|
$result = (new IPOService())->getTradeNameList($market_type);
|
||
|
return json($result);
|
||
|
}
|
||
|
}
|