1234567891011121314151617181920212223 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Gold
- * Date: 2024/1/26
- * Time: 17:04
- */
- namespace app\api\controller;
- use app\admin\model\Banner as BannerModel;
- use app\common\controller\Api;
- class Banner extends Api
- {
- protected $noNeedLogin = ['*'];
- public function getBanner(){
- $BannerModel = new BannerModel();
- $list = $BannerModel->where('is_deleted',1)->order('sort desc,id desc')->select();
- $this->success('操作成功',$list);
- }
- }
|