|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @remark :
|
|
|
|
* @name :DomainApplicantLogController.php
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/5/29 13:52
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Aside\Domain;
|
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Controllers\Aside\BaseController;
|
|
|
|
use App\Http\Logic\Aside\Domain\DomainApplicantLogLogic;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
class DomainApplicantLogController extends BaseController
|
|
|
|
{
|
|
|
|
public function __construct(Request $request)
|
|
|
|
{
|
|
|
|
parent::__construct($request);
|
|
|
|
$this->logic = new DomainApplicantLogLogic();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取列表
|
|
|
|
* @name :lists
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/5/29 13:54
|
|
|
|
*/
|
|
|
|
public function lists(){
|
|
|
|
$lists = $this->logic->lists($this->map,$this->page,$this->row);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :保存数据
|
|
|
|
* @name :save
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/5/29 14:19
|
|
|
|
*/
|
|
|
|
public function save(){
|
|
|
|
$this->request->validate([
|
|
|
|
'domain'=>'required',
|
|
|
|
'applicant_name'=>'required',
|
|
|
|
],[
|
|
|
|
'domain.required' => 'domain不能为空',
|
|
|
|
'applicant_name.required' => '申请人不能为空',
|
|
|
|
]);
|
|
|
|
$data = $this->logic->saveDomainLog();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :删除记录
|
|
|
|
* @name :del
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/5/29 14:25
|
|
|
|
*/
|
|
|
|
public function del(){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
],[
|
|
|
|
'id.required' => 'domain不能为空',
|
|
|
|
]);
|
|
|
|
$data = $this->logic->delDomainLog();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|