初始版本

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,42 @@
<?php
namespace app\coachapi\controller;
use app\coachapi\logic\DepositLogic;
/**
* 保证金控制器类
* Class CoachController
* @package app\coachapi\controller
*/
class DepositController extends BaseCoachController
{
/**
* @notes 获取保证金套餐
* @return \think\response\Json
* @author cjhao
* @date 2024/8/27 18:22
*/
public function depositPackage()
{
$result = (new DepositLogic())->depositPackage($this->coachUserId);
return $this->success('',$result);
}
/**
* @notes 提交订单
* @return \think\response\Json
* @author cjhao
* @date 2024/8/27 18:37
*/
public function sumbitOrder()
{
$params = $this->request->post();
$result = (new DepositLogic())->sumbitOrder($params,$this->coachId);
if(false === $result){
return $this->fail(DepositLogic::getError());
}
return $this->success('',$result);
}
}