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.
55 lines
1.3 KiB
55 lines
1.3 KiB
<?php |
|
|
|
namespace app\models; |
|
|
|
use Yii; |
|
|
|
/** |
|
* This is the model class for table "{{%wechat_template_message}}". |
|
* |
|
* @property integer $id |
|
* @property integer $store_id |
|
* @property string $pay_tpl |
|
* @property string $send_tpl |
|
* @property string $refund_tpl |
|
* @property string $not_pay_tpl |
|
* @property string $revoke_tpl |
|
*/ |
|
class WechatTemplateMessage extends \yii\db\ActiveRecord |
|
{ |
|
/** |
|
* @inheritdoc |
|
*/ |
|
public static function tableName() |
|
{ |
|
return '{{%wechat_template_message}}'; |
|
} |
|
|
|
/** |
|
* @inheritdoc |
|
*/ |
|
public function rules() |
|
{ |
|
return [ |
|
[['store_id'], 'required'], |
|
[['store_id'], 'integer'], |
|
[['pay_tpl', 'send_tpl', 'refund_tpl', 'not_pay_tpl', 'revoke_tpl'], 'string', 'max' => 255], |
|
]; |
|
} |
|
|
|
/** |
|
* @inheritdoc |
|
*/ |
|
public function attributeLabels() |
|
{ |
|
return [ |
|
'id' => 'ID', |
|
'store_id' => 'Store ID', |
|
'pay_tpl' => '支付通知模板消息id', |
|
'send_tpl' => '发货通知模板消息id', |
|
'refund_tpl' => '退款通知模板消息id', |
|
'not_pay_tpl' => '订单未支付通知模板消息id', |
|
'revoke_tpl' => '订单取消通知模板消息id', |
|
]; |
|
} |
|
}
|
|
|