95 lines
2.3 KiB
PHP
95 lines
2.3 KiB
PHP
<?php
|
|
|
|
namespace app\admin\controller\store_extract;
|
|
|
|
|
|
use app\admin\controller\BaseAdminController;
|
|
use app\admin\lists\store_extract\StoreExtractLists;
|
|
use app\admin\logic\store_extract\StoreExtractLogic;
|
|
use app\admin\validate\store_extract\StoreExtractValidate;
|
|
|
|
|
|
/**
|
|
* 门店提现控制器
|
|
* Class StoreExtractController
|
|
* @package app\admin\controller\store_extract
|
|
*/
|
|
class StoreExtractController extends BaseAdminController
|
|
{
|
|
|
|
|
|
/**
|
|
* @notes 获取门店提现列表
|
|
* @return \think\response\Json
|
|
* @author admin
|
|
* @date 2024/05/31 17:09
|
|
*/
|
|
public function lists()
|
|
{
|
|
return $this->dataLists(new StoreExtractLists());
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 添加门店提现
|
|
* @return \think\response\Json
|
|
* @author admin
|
|
* @date 2024/05/31 17:09
|
|
*/
|
|
public function add()
|
|
{
|
|
$params = (new StoreExtractValidate())->post()->goCheck('add');
|
|
$result = StoreExtractLogic::add($params);
|
|
if (true === $result) {
|
|
return $this->success('添加成功', [], 1, 1);
|
|
}
|
|
return $this->fail(StoreExtractLogic::getError());
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 编辑门店提现
|
|
* @return \think\response\Json
|
|
* @author admin
|
|
* @date 2024/05/31 17:09
|
|
*/
|
|
public function edit()
|
|
{
|
|
$params = (new StoreExtractValidate())->post()->goCheck('edit');
|
|
$result = StoreExtractLogic::edit($params);
|
|
if (true === $result) {
|
|
return $this->success('编辑成功', [], 1, 1);
|
|
}
|
|
return $this->fail(StoreExtractLogic::getError());
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 删除门店提现
|
|
* @return \think\response\Json
|
|
* @author admin
|
|
* @date 2024/05/31 17:09
|
|
*/
|
|
public function delete()
|
|
{
|
|
$params = (new StoreExtractValidate())->post()->goCheck('delete');
|
|
StoreExtractLogic::delete($params);
|
|
return $this->success('删除成功', [], 1, 1);
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 获取门店提现详情
|
|
* @return \think\response\Json
|
|
* @author admin
|
|
* @date 2024/05/31 17:09
|
|
*/
|
|
public function detail()
|
|
{
|
|
$params = (new StoreExtractValidate())->goCheck('detail');
|
|
$result = StoreExtractLogic::detail($params);
|
|
return $this->data($result);
|
|
}
|
|
|
|
|
|
} |