ProjectGscController.php
1.3 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
<?php
namespace App\Http\Controllers\Aside\Project;
use App\Enums\Common\Code;
use App\Http\Controllers\Aside\BaseController;
use App\Http\Logic\Aside\Project\GscLogic;
/**
* @remark :优化gsc账号
* @name :ProjectGscController
* @author :lyh
* @time :2023/6/19 11:25
*/
class ProjectGscController extends BaseController
{
/**
* @remark :gsc账号列表
* @name :lists
* @author :lyh
* @method :post
* @time :2023/6/19 11:25
*/
public function lists(GscLogic $gscLogic){
$this->request->validate([
'project_id'=>'required'
],[
'project_id.required' => '项目ID不能为空'
]);
$lists = $gscLogic->GscLists($this->map,$this->page,$this->row,$this->order);
$this->response('success',Code::SUCCESS,$lists);
}
/**
* @remark :根据gsc账号获取域名
* @name :lists
* @author :lyh
* @method :post
* @time :2023/6/19 10:48
*/
public function domainLists(GscLogic $gscLogic){
$this->request->validate([
'gsc_id'=>'required'
],[
'gsc_id.required' => 'GSC账号ID不能为空'
]);
$lists = $gscLogic->DomainLists($this->map,$this->page,$this->row,$this->order);
$this->response('success',Code::SUCCESS,$lists);
}
}