Files
xk-api-yii/common/modelsgii/Callback.php
2024-09-19 11:32:39 +08:00

56 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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',
];
}
}