You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8 KiB

<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "{{%sms_setting}}".
*
* @property integer $id
* @property integer $store_id
* @property string $AccessKeyId
* @property string $AccessKeySecret
* @property string $name
* @property string $sign
* @property string $tpl
* @property string $msg
* @property integer $status
* @property string $mobile
* @property integer $is_delete
* @property integer $addtime
* @property string $tpl_refund
* @property string $tpl_code
*/
class SmsSetting extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%sms_setting}}';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['store_id', 'status', 'is_delete', 'addtime'], 'integer'],
[['tpl_refund', 'tpl_code'], 'string'],
[['AccessKeyId', 'AccessKeySecret', 'name', 'sign', 'tpl', 'msg', 'mobile'], 'string', 'max' => 255],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'store_id' => 'Store ID',
'AccessKeyId' => '阿里云AccessKeyId',
'AccessKeySecret' => '阿里云AccessKeySecret',
'name' => '短信模板名称',
'sign' => '短信模板签名',
'tpl' => '短信模板code',
'msg' => '短信模板参数',
'status' => '开启状态 0--关闭 1--开启',
'mobile' => '接受短信手机号',
'is_delete' => 'Is Delete',
'addtime' => 'Addtime',
'tpl_refund' => '退款模板参数',
'tpl_code' => '验证码模板参数',
];
}
}