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.
43 lines
1.4 KiB
43 lines
1.4 KiB
<?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()
|
|
{
|
|
$userId = $this->request->input('user_id',0);
|
|
$page = $this->request->input('page',0);
|
|
$pagesize = $this->request->input('pagesize',0);
|
|
$startTime = $this->request->input('start_time','');
|
|
$endTime = $this->request->input('end_time','');
|
|
return $this->success($this->revenueListService->getListByUser($userId, $page, $pagesize ,$startTime,$endTime));
|
|
}
|
|
|
|
public function getWithdrawalListByStore()
|
|
{
|
|
$storeId = $this->request->input('store_id',0);
|
|
$page = $this->request->input('page',0);
|
|
$pagesize = $this->request->input('pagesize',0);
|
|
$startTime = $this->request->input('start_time','');
|
|
$endTime = $this->request->input('end_time','');
|
|
$res = $this->withdrawalListService->getListByStore($storeId,$page,$pagesize,$startTime,$endTime);
|
|
return $this->success($res);
|
|
}
|
|
}
|