feat:【system】新增登录日志

This commit is contained in:
YunaiV
2025-12-20 09:37:06 +08:00
parent 8af3f954fd
commit ae3b1db0a5
5 changed files with 401 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
import type { PageParam, PageResult } from '@/http/types'
import { http } from '@/http/http'
export interface LoginLog {
id?: number
traceId?: string
userId?: number
userType?: number
logType?: number
username?: string
userIp?: string
userAgent?: string
result?: number
createTime?: Date
}
export function getLoginLogPage(params: PageParam) {
return http.get<PageResult<LoginLog>>('/system/login-log/page', params)
}
export function getLoginLog(id: number) {
return http.get<LoginLog>(`/system/login-log/get?id=${id}`)
}