|
...
|
...
|
@@ -24,11 +24,6 @@ class ProjectGscController extends BaseController |
|
|
|
* @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);
|
|
|
|
}
|
|
...
|
...
|
@@ -59,9 +54,9 @@ class ProjectGscController extends BaseController |
|
|
|
*/
|
|
|
|
public function read(GscLogic $gscLogic){
|
|
|
|
$this->request->validate([
|
|
|
|
'gsc_id'=>'required'
|
|
|
|
'id'=>'required'
|
|
|
|
],[
|
|
|
|
'gsc_id.required' => 'GSC账号ID不能为空'
|
|
|
|
'id.required' => 'GSC账号ID不能为空'
|
|
|
|
]);
|
|
|
|
$info = $gscLogic->GscRead();
|
|
|
|
$this->response('success',Code::SUCCESS,$info);
|
|
...
|
...
|
@@ -76,7 +71,7 @@ class ProjectGscController extends BaseController |
|
|
|
*/
|
|
|
|
public function save(GscRequest $gscRequest,GscLogic $gscLogic){
|
|
|
|
if(isset($this->param['id'])){
|
|
|
|
$this->request->validate([
|
|
|
|
$gscRequest->validate([
|
|
|
|
'id'=>'required'
|
|
|
|
],[
|
|
|
|
'id.required' => 'GSC账号ID不能为空'
|
...
|
...
|
|