初始版本

This commit is contained in:
贾祥聪
2025-08-19 14:16:51 +08:00
commit f937a1f9b9
4373 changed files with 359728 additions and 0 deletions

View 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);
}
}