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)
}