66 lines
1.5 KiB
PHP
Executable File
66 lines
1.5 KiB
PHP
Executable File
<?php
|
|
namespace app\adminapi\controller\finance;
|
|
use app\adminapi\controller\BaseAdminController;
|
|
use app\adminapi\lists\finance\WithdrawLists;
|
|
use app\adminapi\logic\finance\WithdrawLogic;
|
|
|
|
/**
|
|
* 提现控制器类
|
|
* Class WithdrawController
|
|
* @package app\adminapi\controller\finance
|
|
*/
|
|
class WithdrawController extends BaseAdminController
|
|
{
|
|
|
|
public function lists(){
|
|
return $this->dataLists(new WithdrawLists());
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 详情
|
|
* @return \think\response\Json
|
|
* @author cjhao
|
|
* @date 2024/10/31 16:27
|
|
*/
|
|
public function detail()
|
|
{
|
|
$id = $this->request->get('id');
|
|
$detail = (new WithdrawLogic())->detail($id);
|
|
return $this->success('',$detail);
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 审核
|
|
* @return \think\response\Json
|
|
* @author cjhao
|
|
* @date 2024/10/31 16:35
|
|
*/
|
|
public function audit()
|
|
{
|
|
$params = $this->request->post();
|
|
$result = (new WithdrawLogic())->audit($params);
|
|
if(true === $result){
|
|
return $this->success('操作成功',[],1,1);
|
|
}
|
|
return $this->fail($result);
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 转账
|
|
* @return \think\response\Json
|
|
* @author cjhao
|
|
* @date 2024/10/31 17:46
|
|
*/
|
|
public function transfer()
|
|
{
|
|
$params = $this->request->post();
|
|
$result = (new WithdrawLogic())->transfer($params);
|
|
if(true === $result){
|
|
return $this->success('操作成功',[],1,1);
|
|
}
|
|
return $this->fail($result);
|
|
}
|
|
} |