feat:增加主包(tabbar)、system(系统管理)、infra(基础设施)、bpm(工作流程)的页面
This commit is contained in:
36
src/api/infra/apiAccessLog/index.ts
Normal file
36
src/api/infra/apiAccessLog/index.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import type { PageParam, PageResult } from '@/http/types'
|
||||
import { http } from '@/http/http'
|
||||
|
||||
/** API 访问日志信息 */
|
||||
export interface ApiAccessLog {
|
||||
id: number
|
||||
traceId: string
|
||||
userId: number
|
||||
userType: number
|
||||
applicationName: string
|
||||
requestMethod: string
|
||||
requestParams: string
|
||||
responseBody: string
|
||||
requestUrl: string
|
||||
userIp: string
|
||||
userAgent: string
|
||||
operateModule: string
|
||||
operateName: string
|
||||
operateType: number
|
||||
beginTime: string
|
||||
endTime: string
|
||||
duration: number
|
||||
resultCode: number
|
||||
resultMsg: string
|
||||
createTime: string
|
||||
}
|
||||
|
||||
/** 获取 API 访问日志分页列表 */
|
||||
export function getApiAccessLogPage(params: PageParam) {
|
||||
return http.get<PageResult<ApiAccessLog>>('/infra/api-access-log/page', params)
|
||||
}
|
||||
|
||||
/** 获取 API 访问日志详情 */
|
||||
export function getApiAccessLog(id: number) {
|
||||
return http.get<ApiAccessLog>(`/infra/api-access-log/get?id=${id}`)
|
||||
}
|
||||
Reference in New Issue
Block a user