Index.php 752 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\model\Config;
  4. use app\common\model\ElectPool;
  5. use app\common\model\SearchHistory;
  6. use app\common\model\User;
  7. use app\common\controller\Api;
  8. use app\common\model\UserWantKnow;
  9. use app\common\model\UserWantKnowRecord;
  10. use think\facade\Validate;
  11. /**
  12. * @title 首页
  13. * @controller Index
  14. */
  15. class Index extends Api
  16. {
  17. /**
  18. * @title 首页banner
  19. * @desc 首页banner
  20. * @url /api/User/banner_list
  21. * @method POST
  22. * @tag 基础
  23. * @header name:Authorization require:1 default: desc:验证token
  24. */
  25. public function banner_list(){
  26. $this->check_login();
  27. $result = Banner::BannerList();
  28. $this->success($result['msg'],$result['data']);
  29. }
  30. }