This commit is contained in:
xiaojunnuo
2025-04-24 17:27:13 +08:00
parent 162ebfd4e0
commit 7d96a57d73
5 changed files with 110 additions and 24 deletions

View File

@@ -0,0 +1,12 @@
export type OssClientDeleteReq = {
key: string;
beforeDays?: number;
};
export interface IOssClient {
upload(key: string, content: Buffer | string): Promise<void>;
download(key: string, savePath?: string): Promise<void>;
delete(opts: OssClientDeleteReq): Promise<void>;
}