| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2022-03-04 10:40:22 |
| 4 | * @LastEditors: nevin |
| 5 | * @LastEditTime: 2024-12-20 22:45:03 |
| 6 | * @Description: 阿里云OSS |
| 7 | */ |
| 8 | import OSS from 'ali-oss'; |
| 9 | |
| 10 | export type OssOptions = OSS.Options; |
| 11 | |
| 12 | export interface OssModuleAsyncOption { |
| 13 | imports?: any; |
| 14 | useValue?: OssOptions; |
| 15 | useFactory?: (...args: any[]) => OssOptions; // 生成options的构造函数 |
| 16 | inject?: any[]; // 注入 |
| 17 | } |
| 18 | |
| 19 | export interface OssNewFilePath { |
| 20 | path?: string; |
| 21 | permanent?: boolean; |
| 22 | newName?: string; |
| 23 | } |
| 24 |