@shencom/api
Version:
shencom api group
28 lines (25 loc) • 729 B
text/typescript
declare namespace SC {
namespace OSS {
export interface Sign {
/** OSS 的 `AccessKeyId` */
accessid: string;
/** 上传所需policy信息 */
policy: string;
/** 签名信息 */
signature: string;
/** 用户上传文件时指定的前缀 如: `gov_sc/files/` */
dir: string;
/** 上传存储空间的访问域名 如: `https://xxx-public.oss-cn-shenzhen.aliyuncs.com` */
host: string;
/** 签名到期时间 */
expire: string;
}
export interface SignV2 extends Omit<Sign, 'dir'> {
/** 上传至 oss 的完整文件路径 */
objectName: string;
/** 请求参数中的 name */
name: string;
}
}
}
export { SC };