Banner.php 477 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Gold
  5. * Date: 2024/1/26
  6. * Time: 17:04
  7. */
  8. namespace app\api\controller;
  9. use app\admin\model\Banner as BannerModel;
  10. use app\common\controller\Api;
  11. class Banner extends Api
  12. {
  13. protected $noNeedLogin = ['*'];
  14. public function getBanner(){
  15. $BannerModel = new BannerModel();
  16. $list = $BannerModel->where('is_deleted',1)->order('sort desc,id desc')->select();
  17. $this->success('操作成功',$list);
  18. }
  19. }