123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace app\modules\admin\models;
- use Yii;
- /**
- * This is the model class for table "{{%adminlog}}".
- *
- * @property int $log_id ID
- * @property string $module 模块ID
- * @property string $controller 控制器
- * @property string $action 动作
- * @property string $query_string url请求
- * @property int $admin_id 操作者ID
- * @property int $ip IP
- * @property string $message 日志详细信息
- * @property string|null $data 请求数据
- * @property int $create_time 时间
- */
- class Adminlog extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%adminlog}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['admin_id'], 'required'],
- [['admin_id', 'ip', 'create_time'], 'integer'],
- [['data'], 'string'],
- [['module', 'controller', 'action'], 'string', 'max' => 50],
- [['query_string', 'message'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'log_id' => 'ID',
- 'module' => '模块ID',
- 'controller' => '控制器',
- 'action' => '动作',
- 'query_string' => 'url请求',
- 'admin_id' => '操作者ID',
- 'ip' => 'IP',
- 'message' => '日志详细信息',
- 'data' => '请求数据',
- 'create_time' => '时间',
- ];
- }
- }
|