60 lines
1.5 KiB
PHP
60 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace app\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "{{%cash_setting}}".
|
|
*
|
|
* @property int $id ID
|
|
* @property int $cx_mch_id 平台商户ID
|
|
* @property int $scene 场景类型
|
|
* @property string $cash_types 提现类型
|
|
* @property float $min_cash 最低提现金额
|
|
* @property float $max_cash 最高提现金额
|
|
* @property float $day_max_cash 每日最高提现金额
|
|
* @property float $service_charge 提现费率(百分比)
|
|
*/
|
|
class CashSetting extends \yii\db\ActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return '{{%cash_setting}}';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['cash_types'], 'trim'],
|
|
[['cx_mch_id', 'scene'], 'integer'],
|
|
[['cash_types'], 'required'],
|
|
[['cash_types'], 'string'],
|
|
[['min_cash', 'max_cash', 'day_max_cash', 'service_charge'], 'number'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'cx_mch_id' => '平台商户ID',
|
|
'scene' => '场景类型',
|
|
'cash_types' => '提现类型',
|
|
'min_cash' => '最低提现金额',
|
|
'max_cash' => '最高提现金额',
|
|
'day_max_cash' => '每日最高提现金额',
|
|
'service_charge' => '提现费率(百分比)',
|
|
];
|
|
}
|
|
}
|