feat: 优化项目目录结构
This commit is contained in:
13
apps/frontend/lib/api/oss/index.ts
Normal file
13
apps/frontend/lib/api/oss/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import fetcher from "../fetcher";
|
||||
|
||||
export interface StsToken {
|
||||
AccessKeyId: string;
|
||||
AccessKeySecret: string;
|
||||
Expiration: string;// ISO 8601 格式
|
||||
SecurityToken: string;
|
||||
userId: string;
|
||||
}
|
||||
|
||||
export async function getStsToken() {
|
||||
return fetcher<StsToken>('/api/oss/sts', { method: 'GET' });
|
||||
}
|
||||
Reference in New Issue
Block a user