feat:完善 api 包下的注释

This commit is contained in:
YunaiV
2025-12-20 20:47:04 +08:00
parent 6c3b86666d
commit bf0bea0e8e
2 changed files with 5 additions and 11 deletions

View File

@@ -21,21 +21,12 @@ export interface FileCreateReqVO {
size?: number
}
/**
* 获取文件预签名地址
*
* @param name 文件名
* @param directory 目录(可选)
*/
/** 获取文件预签名地址 */
export function getFilePresignedUrl(name: string, directory?: string) {
return http.get<FilePresignedUrlRespVO>('/infra/file/presigned-url', { name, directory })
}
/**
* 创建文件记录
*
* @param data 文件信息
*/
/** 创建文件记录 */
export function createFile(data: FileCreateReqVO) {
return http.post<string>('/infra/file/create', data)
}

View File

@@ -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<PageResult<LoginLog>>('/system/login-log/page', params)
}
/** 获取登录日志详情 */
export function getLoginLog(id: number) {
return http.get<LoginLog>(`/system/login-log/get?id=${id}`)
}