Log.php 753 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\api\controller\balance;
  10. use app\api\controller\Controller;
  11. use app\api\model\user\BalanceLog as BalanceLogModel;
  12. /**
  13. * 余额账单明细
  14. * Class Log
  15. * @package app\api\controller\balance
  16. */
  17. class Log extends Controller
  18. {
  19. /**
  20. * 余额账单明细列表
  21. * @return array
  22. * @throws \app\common\exception\BaseException
  23. * @throws \think\exception\DbException
  24. */
  25. public function lists()
  26. {
  27. $user = $this->getUser();
  28. $list = (new BalanceLogModel)->getList($user['user_id']);
  29. return $this->renderSuccess(compact('list'));
  30. }
  31. }