| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
- // +----------------------------------------------------------------------
- // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
- // +----------------------------------------------------------------------
- // | 版权所有 2017~2021 LARAVEL研发中心
- // +----------------------------------------------------------------------
- // | 官方网站: http://www.laravel.cn
- // +----------------------------------------------------------------------
- // | Author: laravel开发员 <laravel.qq.com>
- // +----------------------------------------------------------------------
- namespace App\Http\Controllers\Admin;
- use App\Services\Common\BalanceLogService;
- /**
- * 提现管理-控制器
- * @author laravel开发员
- * @since 2020/11/11
- * @package App\Http\Controllers
- */
- class WithdrawController extends Backend
- {
- /**
- * 构造函数
- * @author laravel开发员
- * @since 2020/11/11
- */
- public function __construct()
- {
- parent::__construct();
- $this->service = new BalanceLogService();
- }
- /**
- * 列表
- * @return array
- */
- public function index()
- {
- $pageSize = request()->get('limit', 10);
- $list = $this->service->getDataList(request()->all(), $pageSize);
- $message = array(
- "msg" => '操作成功',
- "code" => 0,
- "data" => isset($list['list'])? $list['list']:[],
- "count" => isset($list['total'])? $list['total']:0,
- );
- return $message;
- }
- /**
- * 统计
- * @return array
- */
- public function count()
- {
- $datas = $this->service->getCount(request()->all());
- $message = array(
- "msg" => '操作成功',
- "code" => 0,
- "data" => $datas,
- );
- return $message;
- }
- /**
- * 审核
- * @return mixed
- */
- public function auth(){
- return $this->service->audit();
- }
- }
|