56 lines
1.3 KiB
PHP
56 lines
1.3 KiB
PHP
<?php
|
||
|
||
namespace common\modelsgii;
|
||
|
||
use Yii;
|
||
|
||
/**
|
||
* This is the model class for table "{{%callback}}".
|
||
*
|
||
* @property int $id
|
||
* @property string|null $content 回调内容
|
||
* @property string $type order下单回调,refund退款回调
|
||
* @property int $status 是否处理成功,1是成功
|
||
* @property string|null $message 失败原因
|
||
* @property int $created_at
|
||
* @property int $updated_at
|
||
*/
|
||
class Callback extends \common\core\BaseActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return '{{%callback}}';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['content', 'message'], 'string'],
|
||
[['status', 'created_at', 'updated_at'], 'integer'],
|
||
[['type'], 'string', 'max' => 50],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'content' => '回调内容',
|
||
'type' => 'order下单回调,refund退款回调',
|
||
'status' => '是否处理成功,1是成功',
|
||
'message' => '失败原因',
|
||
'created_at' => 'Created At',
|
||
'updated_at' => 'Updated At',
|
||
];
|
||
}
|
||
}
|