Order.php 602 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\api\controller\recharge;
  3. use app\api\controller\Controller;
  4. use app\api\model\recharge\Order as OrderModel;
  5. /**
  6. * 充值记录
  7. * Class Order
  8. * @package app\api\controller\user\balance
  9. */
  10. class Order extends Controller
  11. {
  12. /**
  13. * 我的充值记录列表
  14. * @return array
  15. * @throws \app\common\exception\BaseException
  16. * @throws \think\exception\DbException
  17. */
  18. public function lists()
  19. {
  20. $user = $this->getUser();
  21. $list = (new OrderModel)->getList($user['user_id']);
  22. return $this->renderSuccess(compact('list'));
  23. }
  24. }