1
0

BuildingLabel.php 445 B

1234567891011121314151617181920
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\api\controller;
  4. use app\model\BuildingLabel as ModelBuildingLabel;
  5. class BuildingLabel extends Base
  6. {
  7. /**
  8. * 显示资源列表
  9. *
  10. * @return \think\Response
  11. */
  12. public function index()
  13. {
  14. $data = ModelBuildingLabel::where(['root_id' => $this->request->token['root_org']])->field('id,name')->select();
  15. return json(['code'=>0, 'data'=>$data]);
  16. }
  17. }