|
|
@ -38,20 +38,20 @@ const (
|
|
|
|
maxNumSize int64 = 10000
|
|
|
|
maxNumSize int64 = 10000
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
// const (
|
|
|
|
imagePng = "png"
|
|
|
|
// imagePng = "png"
|
|
|
|
imageJpg = "jpg"
|
|
|
|
// imageJpg = "jpg"
|
|
|
|
imageJpeg = "jpeg"
|
|
|
|
// imageJpeg = "jpeg"
|
|
|
|
imageGif = "gif"
|
|
|
|
// imageGif = "gif"
|
|
|
|
imageWebp = "webp"
|
|
|
|
// imageWebp = "webp"
|
|
|
|
)
|
|
|
|
// )
|
|
|
|
|
|
|
|
|
|
|
|
const successCode = http.StatusOK
|
|
|
|
// const successCode = http.StatusOK
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
// const (
|
|
|
|
videoSnapshotImagePng = "png"
|
|
|
|
// videoSnapshotImagePng = "png"
|
|
|
|
videoSnapshotImageJpg = "jpg"
|
|
|
|
// videoSnapshotImageJpg = "jpg"
|
|
|
|
)
|
|
|
|
// )
|
|
|
|
|
|
|
|
|
|
|
|
func NewAWS() (s3.Interface, error) {
|
|
|
|
func NewAWS() (s3.Interface, error) {
|
|
|
|
conf := config.Config.Object.Aws
|
|
|
|
conf := config.Config.Object.Aws
|
|
|
|