初始版本
This commit is contained in:
48
server/app/common/enum/WithdrawApplyEnum.php
Executable file
48
server/app/common/enum/WithdrawApplyEnum.php
Executable file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
namespace app\common\enum;
|
||||
/**
|
||||
* 提现申请枚举类
|
||||
* Class WithdrawApplyEnum
|
||||
* @package app\common\enum
|
||||
*/
|
||||
class WithdrawApplyEnum
|
||||
{
|
||||
|
||||
|
||||
const STATUS_WAIT = 1;
|
||||
const STATUS_SUCCESS = 2;
|
||||
const STATUS_FAILT = 3;
|
||||
|
||||
const STATUS_WAIT_WITHDRAW = 4;
|
||||
|
||||
const STATUS_WAIT_WITHDRAW_SUCCESS = 5;
|
||||
|
||||
const STATUS_WAIT_WITHDRAW_FAILT = 6;
|
||||
|
||||
|
||||
/**
|
||||
* @notes 状态列表
|
||||
* @param $from
|
||||
* @return string
|
||||
* @author cjhao
|
||||
* @date 2024/9/27 10:27
|
||||
*/
|
||||
public function getStatusDesc($from)
|
||||
{
|
||||
$desc = [
|
||||
self::STATUS_WAIT => '待审核',
|
||||
self::STATUS_SUCCESS => '审核成功',
|
||||
self::STATUS_FAILT => '审核失败',
|
||||
self::STATUS_WAIT_WITHDRAW => '提现中',
|
||||
self::STATUS_WAIT_WITHDRAW_SUCCESS => '提现成功',
|
||||
self::STATUS_WAIT_WITHDRAW_FAILT => '提现失败',
|
||||
|
||||
];
|
||||
return $desc[$from] ?? '';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user