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.
59 lines
1.8 KiB
59 lines
1.8 KiB
<?php
|
|
|
|
namespace app\admin\controller\setting;
|
|
|
|
use app\admin\controller\AdminBaseController;
|
|
use app\admin\service\setting\IPOService;
|
|
|
|
// 美股 新股设置
|
|
class PreStock extends AdminBaseController
|
|
{
|
|
|
|
// 列表
|
|
public function index()
|
|
{
|
|
$market_type=intval($this->request->param('market_type'));
|
|
$result= (new IPOService())->stockIPOList($market_type,$this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
// 新增
|
|
public function add()
|
|
{
|
|
$market_type=intval($this->request->param('market_type'));
|
|
$result = (new IPOService())->addStockIPO($market_type,$this->request->param());
|
|
return json($result);
|
|
}
|
|
// 编辑
|
|
public function edit()
|
|
{
|
|
$market_type=intval($this->request->param('market_type'));
|
|
$result = (new IPOService())->editStockIPO($market_type,$this->request->param());
|
|
return json($result);
|
|
}
|
|
// 上市
|
|
public function open()
|
|
{
|
|
$market_type=intval($this->request->param('market_type'));
|
|
$result = (new IPOService())->stockIPO($market_type,$this->request->param());
|
|
return json($result);
|
|
}
|
|
public function note(){
|
|
$service = new IPOService();
|
|
$market_type=intval($this->request->param('market_type'));
|
|
$result = $service->repeatNoteGo($market_type,$this->request->param());
|
|
return json($result);
|
|
}
|
|
public function cancel(){
|
|
$market_type=intval($this->request->param('market_type'));
|
|
$result = (new IPOService())->cancelIPO($market_type,$this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 删除
|
|
public function del()
|
|
{
|
|
$market_type=intval($this->request->param('market_type'));
|
|
$result = (new IPOService())->delStockIPO($market_type,$this->request->param());
|
|
return json($result);
|
|
}
|
|
}
|