21 lines
554 B
PHP
Executable File
21 lines
554 B
PHP
Executable File
<?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);
|
|
}
|
|
} |