初始版本
This commit is contained in:
51
server/app/coachapi/controller/FinanceController.php
Executable file
51
server/app/coachapi/controller/FinanceController.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
namespace app\coachapi\controller;
|
||||
use app\coachapi\lists\WithdrawalLogLists;
|
||||
use app\coachapi\logic\WithdrawLogic;
|
||||
use app\coachapi\validate\WithdrawalApplyValidate;
|
||||
|
||||
/**
|
||||
* 财务控制器类
|
||||
* Class FinanceController
|
||||
* @package app\coachapi\controller
|
||||
*/
|
||||
class FinanceController extends BaseCoachController
|
||||
{
|
||||
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists();
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 提现申请
|
||||
* @return \think\response\Json
|
||||
* @author cjhao
|
||||
* @date 2024/9/26 15:13
|
||||
*/
|
||||
public function withdrawalApply()
|
||||
{
|
||||
|
||||
$params = (new WithdrawalApplyValidate())->post()->goCheck('',['coach_id'=>$this->coachId]);
|
||||
$result = (new WithdrawLogic())->withdrawalApply($params);
|
||||
if(true === $result){
|
||||
return $this->success('申请成功');
|
||||
}
|
||||
return $this->fail($result);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 提现记录
|
||||
* @return \think\response\Json
|
||||
* @author cjhao
|
||||
* @date 2024/9/27 01:34
|
||||
*/
|
||||
public function withdrawalLog()
|
||||
{
|
||||
return $this->dataLists(new WithdrawalLogLists());
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user