|
|
|
@ -5,6 +5,7 @@ namespace App\Controller\v3; |
|
|
|
use App\Controller\BaseController; |
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
|
use App\Service\v3\Interfaces\RevenueListServiceInterface; |
|
|
|
use App\Service\v3\Interfaces\WithdrawalListServiceInterface; |
|
|
|
|
|
|
|
class BalanceStatementController extends BaseController |
|
|
|
{ |
|
|
|
@ -13,9 +14,21 @@ class BalanceStatementController extends BaseController |
|
|
|
* @var RevenueListServiceInterface |
|
|
|
*/ |
|
|
|
protected $revenueListService; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Inject |
|
|
|
* @var WithdrawalListServiceInterface |
|
|
|
*/ |
|
|
|
protected $withdrawalListService; |
|
|
|
public function getRevenueListByUser() |
|
|
|
{ |
|
|
|
$params = $this->request->all(); |
|
|
|
return $this->success($this->revenueListService->check(46)); |
|
|
|
return $this->success($this->revenueListService->getListByUser(46)); |
|
|
|
} |
|
|
|
|
|
|
|
public function getWithdrawalListByStore() |
|
|
|
{ |
|
|
|
$params = $this->request->all(); |
|
|
|
return $this->success($this->withdrawalListService->getListByStore(7)); |
|
|
|
} |
|
|
|
} |