29 lines
608 B
PHP
29 lines
608 B
PHP
<?php
|
|
namespace app\adminapi\controller\contract;
|
|
|
|
use app\adminapi\controller\BaseAdminController;
|
|
use app\adminapi\lists\contract\ContractLists;
|
|
use app\common\logic\contract\ContractLogic;
|
|
|
|
/**
|
|
* 合同控制器
|
|
* Class ContractController
|
|
* @package app\adminapi\controller\contract
|
|
*/
|
|
class ContractController extends BaseAdminController
|
|
{
|
|
|
|
public function lists()
|
|
{
|
|
return $this->dataLists(new ContractLists());
|
|
}
|
|
|
|
public function detail()
|
|
{
|
|
$params = $this->request->get(['id']);
|
|
$result = ContractLogic::detail($params);
|
|
return $this->data($result);
|
|
}
|
|
|
|
}
|