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
887 B
40 lines
887 B
<?php
|
|
|
|
namespace app\admin\controller\setting;
|
|
|
|
use app\admin\controller\AdminBaseController;
|
|
use app\admin\service\setting\DigitalService;
|
|
|
|
// 现货交易对
|
|
class Digital extends AdminBaseController
|
|
{
|
|
|
|
public function index()
|
|
{
|
|
$service = new DigitalService();
|
|
$result = $service->index();
|
|
return json($result);
|
|
}
|
|
|
|
public function add()
|
|
{
|
|
$service = new DigitalService();
|
|
$result = $service->add($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
|
|
public function edit()
|
|
{
|
|
$service = new DigitalService();
|
|
$result = $service->edit($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
public function getTradeNameList()
|
|
{
|
|
$service = new DigitalService();
|
|
$result = $service->getTradeNameList($this->request->param());
|
|
return json($result);
|
|
}
|
|
}
|