You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
859 B

5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. namespace App\Controller\v3;
  3. use App\Controller\BaseController;
  4. use Hyperf\Di\Annotation\Inject;
  5. use App\Service\v3\Interfaces\RevenueListServiceInterface;
  6. use App\Service\v3\Interfaces\WithdrawalListServiceInterface;
  7. class BalanceStatementController extends BaseController
  8. {
  9. /**
  10. * @Inject
  11. * @var RevenueListServiceInterface
  12. */
  13. protected $revenueListService;
  14. /**
  15. * @Inject
  16. * @var WithdrawalListServiceInterface
  17. */
  18. protected $withdrawalListService;
  19. public function getRevenueListByUser()
  20. {
  21. $params = $this->request->all();
  22. return $this->success($this->revenueListService->getListByUser(46));
  23. }
  24. public function getWithdrawalListByStore()
  25. {
  26. $params = $this->request->all();
  27. return $this->success($this->withdrawalListService->getListByStore(7));
  28. }
  29. }