初始版本
This commit is contained in:
66
server/app/adminapi/controller/finance/WithdrawController.php
Executable file
66
server/app/adminapi/controller/finance/WithdrawController.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user