first commit
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\withdraw;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\withdraw\WithdrawWalletLists;
|
||||
use app\adminapi\logic\withdraw\WithdrawWalletLogic;
|
||||
use app\adminapi\validate\withdraw\WithdrawWalletValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 用户提现钱包控制器
|
||||
* Class WithdrawWalletController
|
||||
* @package app\adminapi\controller\withdraw
|
||||
*/
|
||||
class WithdrawWalletController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取用户提现钱包列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/02/26 13:32
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new WithdrawWalletLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑用户提现钱包
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/02/26 13:32
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new WithdrawWalletValidate())->post()->goCheck('edit');
|
||||
$result = WithdrawWalletLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(WithdrawWalletLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除用户提现钱包
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/02/26 13:32
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new WithdrawWalletValidate())->post()->goCheck('delete');
|
||||
WithdrawWalletLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user