Files
anmo/server/app/coachapi/controller/FinanceController.php
2025-08-19 14:16:51 +08:00

52 lines
1.1 KiB
PHP
Executable File

<?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());
}
}