54 lines
1.1 KiB
PHP
54 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace app\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "cx_xt_open_request".
|
|
*
|
|
* @property int $id
|
|
* @property string|null $url 链接
|
|
* @property string|null $send_data 发送请求
|
|
* @property string|null $return_data 响应请求
|
|
* @property int|null $created_at 创建时间
|
|
* @property int|null $user_id 用户id
|
|
*
|
|
*/
|
|
class XtOpenRequest extends \yii\db\ActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'cx_xt_open_request';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['send_data', 'return_data'], 'string'],
|
|
[['created_at','user_id'], 'integer'],
|
|
[['url'], 'string', 'max' => 255],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'url' => 'Url',
|
|
'send_data' => 'Send Data',
|
|
'return_data' => 'Return Data',
|
|
'created_at' => 'Created At',
|
|
];
|
|
}
|
|
}
|