Files
xk-api-yii/common/modelsgii/OpLog.php
2024-12-04 10:30:52 +08:00

76 lines
2.1 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 "yii_address".
*
* @property int $id
* @property string|int user_id //操作用户ID
* @property string|int url // 操作路由
* @property string|int type // 操作状态 0成功 1失败
* @property string|int result_code // 返回的状态码
* @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',
];
}
}