63 lines
1.5 KiB
PHP
63 lines
1.5 KiB
PHP
<?php
|
||
|
||
namespace app\models;
|
||
|
||
use Yii;
|
||
|
||
/**
|
||
* This is the model class for table "cx_yopoint_notify".
|
||
*
|
||
* @property int $id
|
||
* @property string|null $appid appid
|
||
* @property string|null $method 模块
|
||
* @property string|null $biz_content 参数
|
||
* @property int|null $timestamp 时间戳
|
||
* @property string|null $sign_type 加密类型
|
||
* @property string|null $sign 加密
|
||
* @property int|null $created_at 创建时间
|
||
* @property string $return_data 创建时间
|
||
* @property int $type 类型,1.我方请求,2.对方请求
|
||
* @property int $user_id 用户id
|
||
*/
|
||
class YopointNotify extends \yii\db\ActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'cx_yopoint_notify';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['biz_content'], 'string'],
|
||
[['timestamp', 'created_at','type','user_id'], 'integer'],
|
||
[['appid', 'sign'], 'string', 'max' => 32],
|
||
[['method','return_data'], 'string'],
|
||
[['sign_type'], 'string', 'max' => 10],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'appid' => 'Appid',
|
||
'method' => 'Method',
|
||
'biz_content' => 'Biz Content',
|
||
'timestamp' => 'Timestamp',
|
||
'sign_type' => 'Sign Type',
|
||
'sign' => 'Sign',
|
||
'created_at' => 'Created At',
|
||
];
|
||
}
|
||
}
|