data_center/app/adminapi/controller/contract/ContractController.php

29 lines
608 B
PHP
Raw Normal View History

2023-11-06 16:19:20 +08:00
<?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);
}
}