DomainApplicantLogLogic.php
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* @remark :
* @name :DomainApplicantLogLogic.php
* @author :lyh
* @method :post
* @time :2025/5/29 13:53
*/
namespace App\Http\Logic\Aside\Domain;
use App\Http\Logic\Aside\BaseLogic;
use App\Models\Domain\DomainApplicantLog;
class DomainApplicantLogLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->model = new DomainApplicantLog();
$this->param = $this->requestAll;
}
/**
* @remark :列表
* @name :lists
* @author :lyh
* @method :post
* @time :2025/5/29 14:34
*/
public function lists($map,$page,$row){
$lists = $this->model->list($map,$page,$row,'id',['*']);
return $this->success($lists);
}
/**
* @remark :保存域名申请记录
* @name :saveDomainLog
* @author :lyh
* @method :post
* @time :2025/5/29 14:34
*/
public function saveDomainLog(){
if(isset($this->param['id']) && !empty($this->param['id'])){
$id = $this->param['id'];
$this->model->edit($this->param,['id'=>$this->param['id']]);
}else{
$id = $this->model->addReturnId($this->param);
}
return $this->success(['id'=>$id]);
}
/**
* @remark :删除当前记录
* @name :delDomainLog
* @author :lyh
* @method :post
* @time :2025/5/29 14:40
*/
public function delDomainLog(){
$rs = $this->model->del($this->param);
return $this->success($rs);
}
}