12 lines
263 B
Go
Raw Normal View History

2025-03-03 18:59:25 +07:00
package oss
import (
"context"
)
type OSSRepository interface {
UploadFile(ctx context.Context, fileName string, fileContent []byte) (fileUrl string, err error)
GetPublicURL(fileName string) string
2025-03-09 00:47:24 +08:00
DeleteObject(ctx context.Context, fileName string) error
2025-03-03 18:59:25 +07:00
}