Documentation ¶
Index ¶
- func OssDeleteFile(ctx context.Context, ossKey string) error
- func OssDownloadFile(ctx context.Context, model models.OssTransferModel) error
- func OssGetStsToken(ctx context.Context) (*models.OssStsTokenModel, error)
- func OssGetTempUrl(ctx context.Context, model models.OssTempUrlReqModel) (string, error)
- func OssUploadFile(ctx context.Context, model models.OssTransferModel) error
- func SendEmail(ctx context.Context, model models.EmailContentModel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OssDeleteFile ¶
OssDeleteFile 删除OSS文件
func OssDownloadFile ¶
func OssDownloadFile(ctx context.Context, model models.OssTransferModel) error
OssDownloadFile 从OSS上下载文件到本地
func OssGetStsToken ¶
func OssGetStsToken(ctx context.Context) (*models.OssStsTokenModel, error)
OssGetStsToken 获取STS Token
func OssGetTempUrl ¶
OssGetTempUrl 授权访问:获取临时链接
func OssUploadFile ¶
func OssUploadFile(ctx context.Context, model models.OssTransferModel) error
OssUploadFile 上传文件至OSS
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.