初始版本
This commit is contained in:
21
server/app/api/controller/CityController.php
Executable file
21
server/app/api/controller/CityController.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace app\api\controller;
|
||||
use app\api\logic\CityLogic;
|
||||
|
||||
class CityController extends BaseApiController
|
||||
{
|
||||
/**
|
||||
* @notes 获取城市列表
|
||||
* @return \think\response\Json
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author cjhao
|
||||
* @date 2024/10/6 17:50
|
||||
*/
|
||||
public function getCityLists()
|
||||
{
|
||||
$lists = (new CityLogic())->getCityLists();
|
||||
return $this->success('',$lists);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user