feat(web): remote file add api

This commit is contained in:
zhaoying
2026-03-23 17:48:50 +08:00
parent 24c13d408e
commit 9308c6efae
6 changed files with 132 additions and 101 deletions

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing
* @Date: 2026-02-03 13:59:56
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-09 16:24:05
* @Last Modified time: 2026-03-23 17:48:40
*/
import { request, API_PREFIX } from '@/utils/request'
@@ -32,4 +32,9 @@ export const deleteFile = (fileId: string) => {
}
export const shareFileUploadUrlWithoutApiPrefix = `/storage/share/files`
export const shareFileUploadUrl = `${API_PREFIX}${shareFileUploadUrlWithoutApiPrefix}`
export const shareFileUploadUrl = `${API_PREFIX}${shareFileUploadUrlWithoutApiPrefix}`
// Get file info
export const getFileInfoByUrl = (url: string) => {
return request.get('/storage/files/info-by-url', {url})
}