<?php

namespace app\admin\controller;

use app\admin\service\FlowService;

// 资金管理 流水
class Flow extends AdminBaseController
{

    public function digital()
    {
        $service = new FlowService();
        $result = $service->digital($this->request->param(),$this->getAdminId());
        return json($result);
    }

    public function stock()
    {
        $service = new FlowService();
        $result = $service->stock($this->request->param(),$this->getAdminId());
        return json($result);
    }

    public function contract()
    {
        $service = new FlowService();
        $result = $service->contract($this->request->param(),$this->getAdminId());
        return json($result);
    }

    public function forex()
    {
        $service = new FlowService();
        $result = $service->forex($this->request->param(),$this->getAdminId());
        return json($result);
    }

    public function transfer()
    {
        $service = new FlowService();
        $result = $service->transfer($this->request->param(),$this->getAdminId());
        return json($result);
    }

    public function fee()
    {
        $service = new FlowService();
        $result = $service->fee($this->request->param(),$this->getAdminId());
        return json($result);
    }

    public function brokerage()
    {
        $service = new FlowService();
        $result = $service->brokerage($this->request->param(),$this->getAdminId());
        return json($result);
    }

    ################################ 股票资产流水 #####################################

    // 股票流水
    public function StockLogs()
    {
        $service = new FlowService();
        $result = $service->StockLogs($this->request->param(),$this->getAdminId());
        return json($result);
    }

    // 基金流水
    public function fundStock()
    {
        $service = new FlowService();
        $result = $service->fundStock($this->request->param(),$this->getAdminId());
        return json($result);
    }

    // 印度期权流水
    public function inOptionStock()
    {
        $service = new FlowService();
        $result = $service->inOptionStock($this->request->param(),$this->getAdminId());
        return json($result);
    }

    // 印度期权流水
    public function blockStock()
    {
        $service = new FlowService();
        $result = $service->blockStock($this->request->param(),$this->getAdminId());
        return json($result);
    }
    public function allList()
    {
        $service = new FlowService();
        $result = $service->allList($this->request->param(),$this->getAdminId());
        return json($result);
    }
}