diff --git a/src/api/infra/file/index.ts b/src/api/infra/file/index.ts index 2d03201..7cfcba7 100644 --- a/src/api/infra/file/index.ts +++ b/src/api/infra/file/index.ts @@ -21,21 +21,12 @@ export interface FileCreateReqVO { size?: number } -/** - * 获取文件预签名地址 - * - * @param name 文件名 - * @param directory 目录(可选) - */ +/** 获取文件预签名地址 */ export function getFilePresignedUrl(name: string, directory?: string) { return http.get('/infra/file/presigned-url', { name, directory }) } -/** - * 创建文件记录 - * - * @param data 文件信息 - */ +/** 创建文件记录 */ export function createFile(data: FileCreateReqVO) { return http.post('/infra/file/create', data) } diff --git a/src/api/system/login-log/index.ts b/src/api/system/login-log/index.ts index 1d2555b..2b9cf70 100644 --- a/src/api/system/login-log/index.ts +++ b/src/api/system/login-log/index.ts @@ -1,6 +1,7 @@ import type { PageParam, PageResult } from '@/http/types' import { http } from '@/http/http' +/** 登录日志信息 */ export interface LoginLog { id?: number traceId?: string @@ -14,10 +15,12 @@ export interface LoginLog { createTime?: Date } +/** 获取登录日志分页列表 */ export function getLoginLogPage(params: PageParam) { return http.get>('/system/login-log/page', params) } +/** 获取登录日志详情 */ export function getLoginLog(id: number) { return http.get(`/system/login-log/get?id=${id}`) }