mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
410 B
16 lines
410 B
package core
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// ObjectStorageService storage service interface that implement base AliOSS、MINIO or other
|
|
type ObjectStorageService interface {
|
|
VersionInfo
|
|
|
|
PutObject(objectKey string, reader io.Reader, objectSize int64, contentType string) (string, error)
|
|
SignURL(objectKey string, expiredInSec int64) (string, error)
|
|
ObjectURL(objetKey string) string
|
|
ObjectKey(cUrl string) string
|
|
}
|