|
@@ -24,11 +24,6 @@ class ProjectGscController extends BaseController |
|
@@ -24,11 +24,6 @@ class ProjectGscController extends BaseController |
|
24
|
* @time :2023/6/19 11:25
|
24
|
* @time :2023/6/19 11:25
|
|
25
|
*/
|
25
|
*/
|
|
26
|
public function lists(GscLogic $gscLogic){
|
26
|
public function lists(GscLogic $gscLogic){
|
|
27
|
- $this->request->validate([
|
|
|
|
28
|
- 'project_id'=>'required'
|
|
|
|
29
|
- ],[
|
|
|
|
30
|
- 'project_id.required' => '项目ID不能为空'
|
|
|
|
31
|
- ]);
|
|
|
|
32
|
$lists = $gscLogic->GscLists($this->map,$this->page,$this->row,$this->order);
|
27
|
$lists = $gscLogic->GscLists($this->map,$this->page,$this->row,$this->order);
|
|
33
|
$this->response('success',Code::SUCCESS,$lists);
|
28
|
$this->response('success',Code::SUCCESS,$lists);
|
|
34
|
}
|
29
|
}
|
|
@@ -59,9 +54,9 @@ class ProjectGscController extends BaseController |
|
@@ -59,9 +54,9 @@ class ProjectGscController extends BaseController |
|
59
|
*/
|
54
|
*/
|
|
60
|
public function read(GscLogic $gscLogic){
|
55
|
public function read(GscLogic $gscLogic){
|
|
61
|
$this->request->validate([
|
56
|
$this->request->validate([
|
|
62
|
- 'gsc_id'=>'required'
|
57
|
+ 'id'=>'required'
|
|
63
|
],[
|
58
|
],[
|
|
64
|
- 'gsc_id.required' => 'GSC账号ID不能为空'
|
59
|
+ 'id.required' => 'GSC账号ID不能为空'
|
|
65
|
]);
|
60
|
]);
|
|
66
|
$info = $gscLogic->GscRead();
|
61
|
$info = $gscLogic->GscRead();
|
|
67
|
$this->response('success',Code::SUCCESS,$info);
|
62
|
$this->response('success',Code::SUCCESS,$info);
|
|
@@ -76,7 +71,7 @@ class ProjectGscController extends BaseController |
|
@@ -76,7 +71,7 @@ class ProjectGscController extends BaseController |
|
76
|
*/
|
71
|
*/
|
|
77
|
public function save(GscRequest $gscRequest,GscLogic $gscLogic){
|
72
|
public function save(GscRequest $gscRequest,GscLogic $gscLogic){
|
|
78
|
if(isset($this->param['id'])){
|
73
|
if(isset($this->param['id'])){
|
|
79
|
- $this->request->validate([
|
74
|
+ $gscRequest->validate([
|
|
80
|
'id'=>'required'
|
75
|
'id'=>'required'
|
|
81
|
],[
|
76
|
],[
|
|
82
|
'id.required' => 'GSC账号ID不能为空'
|
77
|
'id.required' => 'GSC账号ID不能为空'
|