添加大量图片、字体、音频等静态资源文件,包括用户界面图片、模板文件和安装界面素材 添加系统版本配置文件(.version)和常量定义文件(.constant) 更新供应商依赖文件,包括Symfony VarDumper组件和相关许可证文件 添加验证码配置文件(captcha.php)和.gitignore规则
63 lines
1.3 KiB
PHP
63 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace app\controller\admin\v1\finance;
|
|
|
|
use app\controller\admin\AuthController;
|
|
use app\services\system\CapitalFlowServices;
|
|
use think\annotation\Inject;
|
|
|
|
class CapitalFlow extends AuthController
|
|
{
|
|
|
|
/**
|
|
* @var CapitalFlowServices
|
|
*/
|
|
#[Inject]
|
|
protected CapitalFlowServices $services;
|
|
|
|
/**
|
|
* 资金流水
|
|
* @return mixed
|
|
*/
|
|
public function getFlowList()
|
|
{
|
|
$where = $this->request->getMore([
|
|
['time', ''],
|
|
['trading_type', 0],
|
|
['keywords', ''],
|
|
['ids', ''],
|
|
['export', 0]
|
|
]);
|
|
$date = $this->services->getFlowList($where);
|
|
return app('json')->success($date);
|
|
}
|
|
|
|
/**
|
|
* 资金流水备注
|
|
* @param $id
|
|
* @return mixed
|
|
*/
|
|
public function setMark($id)
|
|
{
|
|
$data = $this->request->postMore([
|
|
['mark', '']
|
|
]);
|
|
$this->services->setMark($id, $data);
|
|
return app('json')->success('备注成功!');
|
|
}
|
|
|
|
/**
|
|
* 账单记录
|
|
* @return mixed
|
|
*/
|
|
public function getFlowRecord()
|
|
{
|
|
$where = $this->request->getMore([
|
|
['type', 'day'],
|
|
['time', '']
|
|
]);
|
|
$data = $this->services->getFlowRecord($where);
|
|
return app('json')->success($data);
|
|
}
|
|
}
|