127 lines
3.2 KiB
PHP
127 lines
3.2 KiB
PHP
<?php
|
|
|
|
namespace app\admin\controller\withdraw;
|
|
|
|
|
|
use app\admin\controller\BaseAdminController;
|
|
use app\admin\lists\withdraw\MerchantWithdrawLists;
|
|
use app\admin\logic\withdraw\MerchantWithdrawLogic;
|
|
use app\admin\validate\withdraw\MerchantWithdrawValidate;
|
|
|
|
|
|
/**
|
|
* 商户供应商提现表控制器
|
|
* Class MerchantWithdrawController
|
|
* @package app\admin\controller\withdraw
|
|
*/
|
|
class MerchantWithdrawController extends BaseAdminController
|
|
{
|
|
|
|
|
|
/**
|
|
* @notes 获取商户供应商提现表列表
|
|
* @return \think\response\Json
|
|
* @author likeadmin
|
|
* @date 2024/05/14 11:21
|
|
*/
|
|
public function lists()
|
|
{
|
|
return $this->dataLists(new MerchantWithdrawLists());
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 添加商户供应商提现表
|
|
* @return \think\response\Json
|
|
* @author likeadmin
|
|
* @date 2024/05/14 11:21
|
|
*/
|
|
public function add()
|
|
{
|
|
$params = (new MerchantWithdrawValidate())->post()->goCheck('add');
|
|
$result = MerchantWithdrawLogic::add($params);
|
|
if (true === $result) {
|
|
return $this->success('添加成功', [], 1, 1);
|
|
}
|
|
return $this->fail(MerchantWithdrawLogic::getError());
|
|
}
|
|
|
|
/**
|
|
* @notes 审核
|
|
* @return \think\response\Json
|
|
* @author likeadmin
|
|
* @date 2024/05/14 11:21
|
|
*/
|
|
public function check()
|
|
{
|
|
$params = (new MerchantWithdrawValidate())->post()->goCheck('check');
|
|
$result = MerchantWithdrawLogic::check($params,$this->adminId);
|
|
if (true === $result) {
|
|
return $this->success('审核成功', [], 1, 1);
|
|
}
|
|
return $this->fail(MerchantWithdrawLogic::getError());
|
|
}
|
|
|
|
/**
|
|
* @notes 设置到账
|
|
* @return \think\response\Json
|
|
* @author likeadmin
|
|
* @date 2024/05/14 11:21
|
|
*/
|
|
public function arrival()
|
|
{
|
|
$params = (new MerchantWithdrawValidate())->post()->goCheck('arrival');
|
|
$result = MerchantWithdrawLogic::arrival($params,$this->adminId);
|
|
if (true === $result) {
|
|
return $this->success('操作成功', [], 1, 1);
|
|
}
|
|
return $this->fail(MerchantWithdrawLogic::getError());
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 编辑商户供应商提现表
|
|
* @return \think\response\Json
|
|
* @author likeadmin
|
|
* @date 2024/05/14 11:21
|
|
*/
|
|
public function edit()
|
|
{
|
|
$params = (new MerchantWithdrawValidate())->post()->goCheck('edit');
|
|
$result = MerchantWithdrawLogic::edit($params);
|
|
if (true === $result) {
|
|
return $this->success('编辑成功', [], 1, 1);
|
|
}
|
|
return $this->fail(MerchantWithdrawLogic::getError());
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 删除商户供应商提现表
|
|
* @return \think\response\Json
|
|
* @author likeadmin
|
|
* @date 2024/05/14 11:21
|
|
*/
|
|
public function delete()
|
|
{
|
|
$params = (new MerchantWithdrawValidate())->post()->goCheck('delete');
|
|
MerchantWithdrawLogic::delete($params);
|
|
return $this->success('删除成功', [], 1, 1);
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 获取商户供应商提现表详情
|
|
* @return \think\response\Json
|
|
* @author likeadmin
|
|
* @date 2024/05/14 11:21
|
|
*/
|
|
public function detail()
|
|
{
|
|
$params = (new MerchantWithdrawValidate())->goCheck('detail');
|
|
$result = MerchantWithdrawLogic::detail($params);
|
|
return $this->data($result);
|
|
}
|
|
|
|
|
|
} |