初始版本
This commit is contained in:
42
server/app/shopapi/controller/DepositController.php
Executable file
42
server/app/shopapi/controller/DepositController.php
Executable file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
namespace app\shopapi\controller;
|
||||
|
||||
use app\shopapi\logic\DepositLogic;
|
||||
|
||||
/**
|
||||
* 保证金控制器类
|
||||
* Class CoachController
|
||||
* @package app\coachapi\controller
|
||||
*/
|
||||
class DepositController extends BaseShopController
|
||||
{
|
||||
|
||||
/**
|
||||
* @notes 获取保证金套餐
|
||||
* @return \think\response\Json
|
||||
* @author cjhao
|
||||
* @date 2024/8/27 18:22
|
||||
*/
|
||||
public function depositPackage()
|
||||
{
|
||||
$result = (new DepositLogic())->depositPackage($this->shopUserId);
|
||||
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->shopId);
|
||||
if(false === $result){
|
||||
return $this->fail(DepositLogic::getError());
|
||||
}
|
||||
return $this->success('',$result);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user