|
@@ -73,6 +73,11 @@ class GeoController extends BaseController |
|
@@ -73,6 +73,11 @@ class GeoController extends BaseController |
|
73
|
* @author :lyh
|
73
|
* @author :lyh
|
|
74
|
* @method :post
|
74
|
* @method :post
|
|
75
|
* @time :2025/7/3 9:31
|
75
|
* @time :2025/7/3 9:31
|
|
|
|
76
|
+ * @param : question->提交的问题
|
|
|
|
77
|
+ * @param : url->提交的网址
|
|
|
|
78
|
+ * @param : keywords->提交的关键字
|
|
|
|
79
|
+ * @param : status->状态(0:可执行 1:禁止执行)
|
|
|
|
80
|
+ * @param : project_id->项目id
|
|
76
|
*/
|
81
|
*/
|
|
77
|
public function saveGeoQuestion(){
|
82
|
public function saveGeoQuestion(){
|
|
78
|
$this->request->validate([
|
83
|
$this->request->validate([
|
|
@@ -91,4 +96,23 @@ class GeoController extends BaseController |
|
@@ -91,4 +96,23 @@ class GeoController extends BaseController |
|
91
|
$data = $this->logic->saveGeoQuestion();
|
96
|
$data = $this->logic->saveGeoQuestion();
|
|
92
|
$this->response('success',Code::SUCCESS,$data);
|
97
|
$this->response('success',Code::SUCCESS,$data);
|
|
93
|
}
|
98
|
}
|
|
|
|
99
|
+
|
|
|
|
100
|
+ /**
|
|
|
|
101
|
+ * @remark :删除问题
|
|
|
|
102
|
+ * @name :del
|
|
|
|
103
|
+ * @author :lyh
|
|
|
|
104
|
+ * @method :post
|
|
|
|
105
|
+ * @time :2025/7/3 10:11
|
|
|
|
106
|
+ * @param :id->主键
|
|
|
|
107
|
+ */
|
|
|
|
108
|
+ public function delGeoQuestion(){
|
|
|
|
109
|
+ $this->request->validate([
|
|
|
|
110
|
+ 'ids'=>'required|array',
|
|
|
|
111
|
+ ],[
|
|
|
|
112
|
+ 'ids.required' => 'ID集合不能为空',
|
|
|
|
113
|
+ 'ids.array' => 'ID集合为数组',
|
|
|
|
114
|
+ ]);
|
|
|
|
115
|
+ $data = $this->logic->delGeoQuestion();
|
|
|
|
116
|
+ $this->response('success',Code::SUCCESS,$data);
|
|
|
|
117
|
+ }
|
|
94
|
} |
118
|
} |