初始版本

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,83 @@
<?php
namespace app\adminapi\controller\shop;
use app\adminapi\controller\BaseAdminController;
use app\adminapi\logic\shop\DepositPackageLogic;
use app\adminapi\validate\shop\DepositPackageValidate;
/**
* 保证金套餐控制器类
* Class DepositPackageController
* @package app\adminapi\controller\coach
*/
class DepositPackageController extends BaseAdminController
{
/**
* @notes 查看列表
* @return \think\response\Json
* @author ljj
* @date 2022/2/8 3:52 下午
*/
public function lists()
{
return $this->dataLists();
}
/**
* @notes 添加服务分类
* @return \think\response\Json
* @author ljj
* @date 2022/2/8 5:03 下午
*/
public function add()
{
$params = (new DepositPackageValidate())->post()->goCheck('add');
(new DepositPackageLogic())->add($params);
return $this->success('操作成功', [],1,1);
}
/**
* @notes 查看服务分类详情
* @return \think\response\Json
* @author ljj
* @date 2022/2/8 5:21 下午
*/
public function detail()
{
$params = (new DepositPackageValidate())->get()->goCheck('id');
$result = (new DepositPackageLogic())->detail($params['id']);
return $this->success('获取成功',$result);
}
/**
* @notes 编辑服务分类
* @return \think\response\Json
* @author ljj
* @date 2022/2/8 6:26 下午
*/
public function edit()
{
$params = (new DepositPackageValidate())->post()->goCheck();
(new DepositPackageLogic())->edit($params);
return $this->success('操作成功',[],1,1);
}
/**
* @notes 删除服务分类
* @return \think\response\Json
* @author ljj
* @date 2022/2/8 6:34 下午
*/
public function del()
{
$params = (new DepositPackageValidate())->post()->goCheck('id');
(new DepositPackageLogic())->del($params['id']);
return $this->success('操作成功',[],1,1);
}
}

View File

@@ -0,0 +1,68 @@
<?php
namespace app\adminapi\controller\shop;
use app\adminapi\controller\BaseAdminController;
use app\adminapi\logic\shop\GoodsLogic;
use app\adminapi\validate\shop\GoodsValidate;
/**
* 商家项目控制器类
* Class GoodsController
* @package app\adminapi\controller\shop
*/
class GoodsController extends BaseAdminController
{
/**
* @notes 列表
* @return \think\response\Json
* @author cjhao
* @date 2024/10/29 12:11
*/
public function lists()
{
return $this->dataLists();
}
/**
* @notes 详情
* @return \think\response\Json
* @author cjhao
* @date 2024/10/29 13:15
*/
public function detail()
{
$params = (new GoodsValidate())->goCheck('id');
$result = (new GoodsLogic())->detail($params['id']);
return $this->success('',$result);
}
/**
* @notes 上下架
* @return \think\response\Json
* @author cjhao
* @date 2024/10/29 13:04
*/
public function status()
{
$params = (new GoodsValidate())->post()->goCheck('id');
(new GoodsLogic())->status($params['id']);
return $this->success('操作成功',[],1,1);
}
/**
* @notes 审核
* @return \think\response\Json
* @author cjhao
* @date 2024/10/29 13:24
*/
public function audit()
{
$params = (new GoodsValidate())->post()->goCheck();
$result = (new GoodsLogic())->audit($params);
if(true === $result){
return $this->success('审核成功',[],1,1);
}
return $this->fail(GoodsLogic::getError(),[],1,1);
}
}

View File

@@ -0,0 +1,181 @@
<?php
namespace app\adminapi\controller\shop;
use app\adminapi\controller\BaseAdminController;
use app\adminapi\lists\shop\ShopApplyLists;
use app\adminapi\lists\shop\UpdateShopLists;
use app\adminapi\logic\shop\ShopLogic;
use app\adminapi\validate\shop\AdjustWalletValidate;
use app\adminapi\validate\shop\ShopAuditValidate;
use app\adminapi\validate\shop\ShopValidate;
/**
* 店铺控制器类
* Class ShopController
* @package app\adminapi\controller\shop
*/
class ShopController extends BaseAdminController
{
public function lists()
{
return $this->dataLists();
}
/**
* @notes 申请列表
* @return \think\response\Json
* @author cjhao
* @date 2024/8/26 17:46
*/
public function applyLists()
{
return $this->dataLists((new ShopApplyLists()));
}
/**
* @notes 店铺审核
* @return \think\response\Json
* @author cjhao
* @date 2024/10/7 00:41
*/
public function shopAudit()
{
$params = (new ShopValidate())->post()->goCheck('id');
$params['admin_id'] = $this->adminId;
$result = (new Shoplogic())->shopAudit($params);
if(true === $result){
return $this->success('审核成功',[],1,1);
}
return $this->fail($result);
}
/**
* @notes 添加门店
* @return \think\response\Json
* @author cjhao
* @date 2024/10/2 19:11
*/
public function add()
{
$params = (new ShopValidate())->post()->goCheck('add');
$result = (new ShopLogic())->add($params);
if(true === $result){
return $this->success('添加成功');
}
return $this->fail($result);
}
/**
* @notes 编辑门店
* @return \think\response\Json
* @author cjhao
* @date 2024/10/3 15:01
*/
public function edit()
{
$params = (new ShopValidate())->post()->goCheck();
$result = (new ShopLogic())->edit($params);
if(true === $result){
return $this->success('编辑成功');
}
return $this->fail($result);
}
/**
* @notes 详情
* @return \think\response\Json
* @throws \Exception
* @author cjhao
* @date 2024/10/3 23:21
*/
public function detail()
{
$params = (new ShopValidate())->goCheck('id');
$result = (new ShopLogic())->detail($params['id']);
return $this->success('',$result);
}
/**
* @notes 调整余额
* @return \think\response\Json
* @throws \Exception
* @author cjhao
* @date 2024/8/23 13:51
*/
public function adjustMoney()
{
$params = (new AdjustWalletValidate())->post()->goCheck();
$params['admin_id'] = $this->adminId;
$result = (new ShopLogic())->adjustMoney($params);
if(true === $result){
return $this->success('调整成功',[],1,1);
}
return $this->fail($result);
}
/**
* @notes 调整余额
* @return \think\response\Json
* @throws \Exception
* @author cjhao
* @date 2024/8/23 13:51
*/
public function adjustDeposit()
{
$params = (new AdjustWalletValidate())->post()->goCheck();
$params['admin_id'] = $this->adminId;
$result = (new ShopLogic())->adjustDeposit($params);
if(true === $result){
return $this->success('调整成功',[],1,1);
}
return $this->fail($result);
}
/**
* @notes 审核列表
* @return \think\response\Json
* @author cjhao
* @date 2024/10/7 01:19
*/
public function updateShopLists()
{
return $this->dataLists((new UpdateShopLists()));
}
/**
* @notes 更新资料详情
* @return \think\response\Json
* @author cjhao
* @date 2024/8/28 11:04
*/
public function updateDetail()
{
$params = (new ShopValidate())->goCheck('id');
$result = (new ShopLogic())->updateDetail($params['id']);
return $this->success('',$result);
}
/**
* @notes 更新资料审核
* @return \think\response\Json
* @author cjhao
* @date 2024/10/7 14:54
*/
public function updateAudit()
{
$params = (new ShopAuditValidate())->post()->goCheck();
$params['admin_id'] = $this->adminId;
$result = (new ShopLogic())->updateAudit($params);
if(true === $result){
return $this->success('审核成功',[],1,1);
}
return $this->fail($result);
}
}