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.
34 lines
859 B
34 lines
859 B
<?php
|
|
|
|
|
|
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
|
|
{
|
|
/**
|
|
* @Inject
|
|
* @var RevenueListServiceInterface
|
|
*/
|
|
protected $revenueListService;
|
|
|
|
/**
|
|
* @Inject
|
|
* @var WithdrawalListServiceInterface
|
|
*/
|
|
protected $withdrawalListService;
|
|
public function getRevenueListByUser()
|
|
{
|
|
$params = $this->request->all();
|
|
return $this->success($this->revenueListService->getListByUser(46));
|
|
}
|
|
|
|
public function getWithdrawalListByStore()
|
|
{
|
|
$params = $this->request->all();
|
|
return $this->success($this->withdrawalListService->getListByStore(7));
|
|
}
|
|
}
|