12345678910111213141516171819202122 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- use app\common\model\Goods as GoodsModel;
- class Goods extends Api
- {
- protected $noNeedLogin = ['*'];
- protected $noNeedRight = ['*'];
- /**
- * 产品列表
- *
- */
- public function goodslist(){
- $this->success('请求成功',GoodsModel::where('status',1)->select());
- }
- }
|