12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
-
- namespace app\api\controller;
-
- use app\api\logic\IntegralGoodsLogic;
- use app\api\validate\IntegralGoodsValidate;
- use app\common\basics\Api;
- use app\common\server\JsonServer;
-
-
- class IntegralGoods extends Api
- {
-
-
-
- public function lists()
- {
- $get = $this->request->get();
- $lists = IntegralGoodsLogic::lists($this->user_id, $get, $this->page_no, $this->page_size);
- return JsonServer::success('获取成功', $lists);
- }
-
-
-
-
- public function detail()
- {
- (new IntegralGoodsValidate())->goCheck();
- $id = $this->request->get('id', '', 'trim');
- $goodsDetail = IntegralGoodsLogic::detail($id);
- return JsonServer::success('获取成功', $goodsDetail);
- }
-
- }
|