ComController.php
877 字节
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
<?php
/**
* @remark :
* @name :ComController.php
* @author :lyh
* @method :post
* @time :2025/11/19 15:50
*/
namespace App\Http\Controllers\Api;
use App\Enums\Common\Code;
use App\Models\Geo\GeoLink;
class ComController extends BaseController
{
/**
* @remark :获取geo链接
* @name :getGeoLink
* @author :lyh
* @method :post
* @time :2025/11/19 15:51
*/
public function getGeoLink()
{
$this->request->validate([
'project_id' => 'required',
], [
'project_id.required' => 'project_id不能为空',
]);
$geoLinkModel = new GeoLink();
$filed = ['id','project_id','url','da','type','created_at','updated_at'];
$lists = $geoLinkModel->lists($this->map,$this->page,$this->row,$filed);
$this->response('success',Code::SUCCESS,$lists);
}
}