存客宝应用接口初始化

This commit is contained in:
Ghost
2026-01-05 10:25:32 +08:00
parent fa37227954
commit 02797ba50a
414 changed files with 85530 additions and 75 deletions

View File

@@ -0,0 +1,71 @@
<?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';
}