完成ali-oss文件管理

This commit is contained in:
2025-06-10 13:52:35 +08:00
parent 1ac210aa64
commit e4d5b32f0d
10 changed files with 1861 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
import fetcher from "../fetcher";
export async function getStsToken() {
return fetcher<{
AccessKeyId: string;
AccessKeySecret: string;
Expiration: string;// ISO 8601 格式
SecurityToken: string;
userId: string;
}>('/api/oss/sts', { method: 'GET' });
}