Files
xk-api-yii/common/modelsgii/Callback.php

56 lines
1.3 KiB
PHP
Raw Normal View History

2024-09-19 11:32:39 +08:00
<?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',
];
}
}