初始版本

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,218 @@
<?php
namespace app\adminapi\controller\coach;
use app\adminapi\controller\BaseAdminController;
use app\adminapi\lists\coach\CoachApplyLists;
use app\adminapi\lists\coach\UpdateCoachLists;
use app\adminapi\logic\coach\CoachLogic;
use app\adminapi\validate\coach\AdjustWalletValidate;
use app\adminapi\validate\coach\CoachAuditValidate;
use app\adminapi\validate\coach\CoachValidate;
/**
* 技师控制器类
* Class CoachController
* @package app\adminapi\controller\coach
*/
class CoachController extends BaseAdminController
{
/**
* @notes 技师端账号列表
* @return \think\response\Json
* @author cjhao
* @date 2024/8/20 17:32
*/
public function coachUserLists()
{
$lists = (new CoachLogic())->coachUserLists();
return $this->success('',$lists);
}
/**
* @notes 技能列表
* @return \think\response\Json
* @author cjhao
* @date 2024/8/20 17:45
*/
public function skillLists()
{
$lists = (new CoachLogic())->skillLists();
return $this->success('',$lists);
}
/**
* @notes 数据列表
* @return \think\response\Json
* @author cjhao
* @date 2024/8/21 18:13
*/
public function otherLists()
{
$dataLists = (new CoachLogic())->otherLists();
return $this->success('',$dataLists);
}
/**
* @notes 技师列表
* @return \think\response\Json
* @author cjhao
* @date 2024/8/20 17:33
*/
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 CoachApplyLists()));
}
/**
* @notes 资料更新列表
* @return \think\response\Json
* @author cjhao
* @date 2024/8/28 10:23
*/
public function updateCoachLists()
{
return $this->dataLists((new UpdateCoachLists()));
}
/**
* @notes 添加技师
* @return \think\response\Json
* @author cjhao
* @date 2024/8/21 14:20
*/
public function add()
{
$params = (new CoachValidate())->post()->goCheck('add');
$result = (new CoachLogic())->add($params);
if(true === $result){
return $this->success('添加成功',[],1,1);
}
return $this->fail($result);
}
/**
* @notes 更新资料详情
* @return \think\response\Json
* @author cjhao
* @date 2024/8/28 11:04
*/
public function updateDetail()
{
$params = (new CoachValidate())->goCheck('id');
$result = (new CoachLogic())->updateDetail($params['id']);
return $this->success('',$result);
}
/**
* @notes 详情
* @return \think\response\Json
* @author cjhao
* @date 2024/8/21 15:29
*/
public function detail()
{
$params = (new CoachValidate())->goCheck('id');
$result = (new CoachLogic())->detail($params['id']);
return $this->success('',$result);
}
/**
* @notes 编辑
* @return \think\response\Json
* @author cjhao
* @date 2024/8/21 15:48
*/
public function edit()
{
$params = (new CoachValidate())->post()->goCheck();
$result = (new CoachLogic())->edit($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 adjustMoney()
{
$params = (new AdjustWalletValidate())->post()->goCheck();
$params['admin_id'] = $this->adminId;
$result = (new CoachLogic())->adjustMoney($params);
if(true === $result){
return $this->success('调整成功',[],1,1);
}
return $this->fail($result);
}
/**
* @notes 调整保证金
* @return \think\response\Json
* @author cjhao
* @date 2024/8/23 15:05
*/
public function adjustDeposit()
{
$params = (new AdjustWalletValidate())->post()->goCheck();
$params['admin_id'] = $this->adminId;
$result = (new CoachLogic())->adjustDeposit($params);
if(true === $result){
return $this->success('调整成功',[],1,1);
}
return $this->fail($result);
}
/**
* @notes 技师审核
* @return \think\response\Json
* @author cjhao
* @date 2024/8/23 18:43
*/
public function coachAudit()
{
$params = (new CoachAuditValidate())->post()->goCheck();
$params['admin_id'] = $this->adminId;
$result = (new CoachLogic())->coachAudit($params);
if(true === $result){
return $this->success('审核成功',[],1,1);
}
return $this->fail($result);
}
/**
* @notes 技师审核
* @return \think\response\Json
* @author cjhao
* @date 2024/8/28 11:30
*/
public function updateAudit()
{
$params = (new CoachAuditValidate())->post()->goCheck();
$params['admin_id'] = $this->adminId;
$result = (new CoachLogic())->updateAudit($params);
if(true === $result){
return $this->success('审核成功',[],1,1);
}
return $this->fail($result);
}
}

View File

@@ -0,0 +1,83 @@
<?php
namespace app\adminapi\controller\coach;
use app\adminapi\controller\BaseAdminController;
use app\adminapi\logic\coach\DepositPackageLogic;
use app\adminapi\validate\coach\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,94 @@
<?php
namespace app\adminapi\controller\coach;
use app\adminapi\controller\BaseAdminController;
use app\adminapi\logic\coach\SKillLogic;
use app\adminapi\validate\coach\SkillValidate;
/**
* 技能控制器类
* Class SkillController
* @package app\adminapi\controller\coach
*/
class SkillController 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 SkillValidate())->post()->goCheck('add');
(new SKillLogic())->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 SkillValidate())->get()->goCheck('id');
$result = (new SKillLogic())->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 SkillValidate())->post()->goCheck();
(new SKillLogic())->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 SkillValidate())->post()->goCheck('id');
(new SKillLogic())->del($params['id']);
return $this->success('操作成功',[],1,1);
}
/**
* @notes 修改服务分类状态
* @return \think\response\Json
* @author ljj
* @date 2022/2/10 10:57 上午
*/
public function status()
{
$params = (new SkillValidate())->post()->goCheck('id');
(new SKillLogic())->status($params);
return $this->success('操作成功',[],1,1);
}
}