refactor: 修改登录接口
This commit is contained in:
29
app/admin/model/v1/UserLoginLogModel.php
Normal file
29
app/admin/model/v1/UserLoginLogModel.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\admin\model\v1;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class UserLoginLogModel extends Model
|
||||
{
|
||||
// 设置表名
|
||||
protected $name = 'sys_user_login_log';
|
||||
|
||||
// 设置主键
|
||||
protected $pk = 'id';
|
||||
|
||||
// 设置字段信息
|
||||
protected $schema = [
|
||||
'id' => 'int',
|
||||
'user_id' => 'int',
|
||||
'ip' => 'string',
|
||||
'user_agent' => 'string',
|
||||
'message' => 'string',
|
||||
'status' => 'int',
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user