feat:【system】新增登录日志
This commit is contained in:
23
src/api/system/login-log/index.ts
Normal file
23
src/api/system/login-log/index.ts
Normal 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}`)
|
||||
}
|
||||
Reference in New Issue
Block a user