Files
cunkebao_v3/Server/application/cunkebao/model/DistributionWithdrawal.php
2025-12-17 16:20:46 +08:00

72 lines
1.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\cunkebao\model;
use app\cunkebao\model\BaseModel;
use think\Model;
/**
* 分销渠道提现申请模型
*/
class DistributionWithdrawal extends BaseModel
{
// 设置表名
protected $name = 'distribution_withdrawal';
// 自动写入时间戳
protected $autoWriteTimestamp = true;
protected $createTime = 'createTime';
protected $updateTime = 'updateTime';
// 类型转换
protected $type = [
'id' => 'integer',
'companyId' => 'integer',
'channelId' => 'integer',
'amount' => 'integer',
'reviewTime' => 'timestamp',
'applyTime' => 'timestamp',
'createTime' => 'timestamp',
'updateTime' => 'timestamp',
];
/**
* 状态pending待审核
*/
const STATUS_PENDING = 'pending';
/**
* 状态approved已通过
*/
const STATUS_APPROVED = 'approved';
/**
* 状态rejected已拒绝
*/
const STATUS_REJECTED = 'rejected';
/**
* 状态paid已打款
*/
const STATUS_PAID = 'paid';
/**
* 支付类型wechat微信
*/
const PAY_TYPE_WECHAT = 'wechat';
/**
* 支付类型alipay支付宝
*/
const PAY_TYPE_ALIPAY = 'alipay';
/**
* 支付类型bankcard银行卡
*/
const PAY_TYPE_BANKCARD = 'bankcard';
}