2024-12-04 09:28:48 +08:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace common\modelsgii;
|
|
|
|
|
|
|
|
|
|
|
|
use Yii;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* This is the model class for table "yii_address".
|
|
|
|
|
|
*
|
|
|
|
|
|
* @property int $id
|
|
|
|
|
|
* @property string|int user_id //操作用户ID
|
|
|
|
|
|
* @property string|int url // 操作路由
|
|
|
|
|
|
* @property string|int type // 操作状态 0:成功 1:失败
|
2024-12-04 10:30:52 +08:00
|
|
|
|
* @property string|int result_code // 返回的状态码
|
2024-12-04 09:28:48 +08:00
|
|
|
|
* @property string|int ip // 操作者IP地址
|
|
|
|
|
|
* @property string|int param // 操作者IP地址
|
|
|
|
|
|
* @property string|int result // 操作者IP地址
|
|
|
|
|
|
* @property string|int platform_type // 平台类型 0:总后台 1:门店后台 2:小程序
|
|
|
|
|
|
* @property string|int platform_id // 所属平台ID 0:总后台 1:门店诊所ID
|
|
|
|
|
|
* @property string|int equipment // 设备
|
|
|
|
|
|
* @property string|int browser // 浏览器
|
|
|
|
|
|
* @property string|int created_at // 浏览器
|
|
|
|
|
|
*/
|
|
|
|
|
|
class OpLog extends \common\core\BaseActiveRecord
|
|
|
|
|
|
{
|
|
|
|
|
|
/**
|
|
|
|
|
|
* {@inheritdoc}
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static function tableName()
|
|
|
|
|
|
{
|
|
|
|
|
|
return 'yii_op_log';
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* {@inheritdoc}
|
|
|
|
|
|
*/
|
|
|
|
|
|
public function rules()
|
|
|
|
|
|
{
|
|
|
|
|
|
return [
|
|
|
|
|
|
[['user_id'], 'required'],
|
|
|
|
|
|
[['url'], 'required'],
|
|
|
|
|
|
[['type'], 'required'],
|
|
|
|
|
|
[['ip'], 'required'],
|
|
|
|
|
|
[['param'], 'required'],
|
|
|
|
|
|
[['result'], 'required'],
|
|
|
|
|
|
[['platform_type'], 'required'],
|
|
|
|
|
|
[['platform_id'], 'required'],
|
|
|
|
|
|
[['equipment'], 'required'],
|
|
|
|
|
|
[['browser'], 'required'],
|
|
|
|
|
|
[['created_at'], 'required'],
|
|
|
|
|
|
];
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* {@inheritdoc}
|
|
|
|
|
|
*/
|
|
|
|
|
|
public function attributeLabels()
|
|
|
|
|
|
{
|
|
|
|
|
|
return [
|
|
|
|
|
|
'id' => 'ID',
|
|
|
|
|
|
'user_id' => 'User ID',
|
|
|
|
|
|
'name' => 'Name',
|
|
|
|
|
|
'mobile' => 'Mobile',
|
|
|
|
|
|
'province' => 'Province',
|
|
|
|
|
|
'city' => 'city',
|
|
|
|
|
|
'area' => 'area',
|
|
|
|
|
|
'region' => 'Region',
|
|
|
|
|
|
'detail_address' => 'Detail Address',
|
|
|
|
|
|
'is_default' => 'Is Default',
|
|
|
|
|
|
'created_at' => 'Created At',
|
|
|
|
|
|
'updated_at' => 'Updated At',
|
|
|
|
|
|
'is_delete' => 'Is Delete',
|
|
|
|
|
|
];
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|