|
...
|
...
|
@@ -73,6 +73,11 @@ class GeoController extends BaseController |
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/7/3 9:31
|
|
|
|
* @param : question->提交的问题
|
|
|
|
* @param : url->提交的网址
|
|
|
|
* @param : keywords->提交的关键字
|
|
|
|
* @param : status->状态(0:可执行 1:禁止执行)
|
|
|
|
* @param : project_id->项目id
|
|
|
|
*/
|
|
|
|
public function saveGeoQuestion(){
|
|
|
|
$this->request->validate([
|
|
...
|
...
|
@@ -91,4 +96,23 @@ class GeoController extends BaseController |
|
|
|
$data = $this->logic->saveGeoQuestion();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :删除问题
|
|
|
|
* @name :del
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/7/3 10:11
|
|
|
|
* @param :id->主键
|
|
|
|
*/
|
|
|
|
public function delGeoQuestion(){
|
|
|
|
$this->request->validate([
|
|
|
|
'ids'=>'required|array',
|
|
|
|
],[
|
|
|
|
'ids.required' => 'ID集合不能为空',
|
|
|
|
'ids.array' => 'ID集合为数组',
|
|
|
|
]);
|
|
|
|
$data = $this->logic->delGeoQuestion();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|