feat: 版本管理文件上传修改为 oss 真传
This commit is contained in:
@@ -29,10 +29,27 @@ const VersionApi = {
|
||||
method: "delete",
|
||||
});
|
||||
},
|
||||
//获取上传临时凭证
|
||||
getCredentials() {
|
||||
return request<any, ossConfig>({
|
||||
url: `${baseURL}/getCredentials`,
|
||||
method: "get",
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
|
||||
export default VersionApi;
|
||||
|
||||
export interface ossConfig {
|
||||
accessKeyId: string;
|
||||
accessKeySecret: string;
|
||||
expiration: string;
|
||||
securityToken: number;
|
||||
}
|
||||
|
||||
|
||||
export interface versionForm {
|
||||
/**
|
||||
* 版本 id
|
||||
|
||||
Reference in New Issue
Block a user