删除api私有地区model,移到common/model/geo
This commit is contained in:
commit
ff4ef92d26
@ -11,12 +11,13 @@ namespace app\api\controller;
|
||||
|
||||
use app\api\BaseController;
|
||||
use app\api\middleware\Auth;
|
||||
use app\api\model\GeoProvince as GeoProvinceModel;
|
||||
use app\api\model\GeoCity as GeoCityModel;
|
||||
use app\api\model\GeoArea as GeoAreaModel;
|
||||
use app\api\model\GeoStreet as GeoStreetModel;
|
||||
use app\api\model\GeoVillage as GeoVillageModel;
|
||||
use app\api\model\GeoBrigade as GeoBrigadeModel;
|
||||
use app\common\model\geo\GeoProvince as GeoProvinceModel;
|
||||
use app\common\model\geo\GeoCity as GeoCityModel;
|
||||
use app\common\model\geo\GeoArea as GeoAreaModel;
|
||||
use app\common\model\geo\GeoStreet as GeoStreetModel;
|
||||
use app\common\model\geo\GeoVillage as GeoVillageModel;
|
||||
use app\common\model\geo\GeoBrigade as GeoBrigadeModel;
|
||||
|
||||
|
||||
/**
|
||||
* 首页接口
|
||||
@ -29,7 +30,7 @@ class Geo extends BaseController
|
||||
* @var array
|
||||
*/
|
||||
protected $middleware = [
|
||||
Auth::class => ['except' => ['Province','City','Area','Street','Village', 'Brigade']]
|
||||
Auth::class => ['except' => ['Province','City','Area','Street','Village', 'Brigade','test']]
|
||||
];
|
||||
|
||||
/**
|
||||
@ -124,4 +125,5 @@ class Geo extends BaseController
|
||||
|
||||
$this->apiSuccess('OK',$list);
|
||||
}
|
||||
|
||||
}
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @ 地区联动模型
|
||||
*/
|
||||
namespace app\api\model;
|
||||
namespace app\common\model\geo;
|
||||
|
||||
use think\model;
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @ 地区联动 - 大队
|
||||
*/
|
||||
namespace app\api\model;
|
||||
namespace app\common\model\geo;
|
||||
|
||||
use think\model;
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @ 地区联动模型
|
||||
*/
|
||||
namespace app\api\model;
|
||||
namespace app\common\model\geo;
|
||||
|
||||
use think\model;
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @ 地区联动模型
|
||||
*/
|
||||
namespace app\api\model;
|
||||
namespace app\common\model\geo;
|
||||
|
||||
use think\model;
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @ 地区联动模型
|
||||
*/
|
||||
namespace app\api\model;
|
||||
namespace app\common\model\geo;
|
||||
|
||||
use think\model;
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @ 地区联动模型
|
||||
*/
|
||||
namespace app\api\model;
|
||||
namespace app\common\model\geo;
|
||||
|
||||
use think\model;
|
||||
|
Loading…
x
Reference in New Issue
Block a user