DomainApplicantLogLogic.php
2.2 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?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){
if(isset($map['domain']) && !empty($map['domain'])){
$map['domain'] = ['like','%'.$map['domain'].'%'];
}
if(isset($map['applicant_name']) && !empty($map['applicant_name'])){
$map['applicant_name'] = ['like','%'.$map['applicant_name'].'%'];
}
if(isset($map['operator_name']) && !empty($map['operator_name'])){
$map['operator_name'] = ['like','%'.$map['operator_name'].'%'];
}
$lists = $this->model->lists($map,$page,$row,'id',['*']);
return $this->success($lists);
}
/**
* @remark :获取详情
* @name :info
* @author :lyh
* @method :post
* @time :2025/5/30 14:35
*/
public function info(){
$lists = $this->model->read($this->param);
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);
}
}