refactor: 修改登录接口

This commit is contained in:
2025-01-02 18:10:58 +08:00
parent 8039fef873
commit 7b3d8135e8
4 changed files with 92 additions and 31 deletions

View 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',
];
}