feat: add oss service factory implements, add support for setting custom upload handler, localstorage and minio oss

This commit is contained in:
RockYang
2023-08-20 22:29:08 +08:00
parent 89b30bcf58
commit 46f96e94ec
12 changed files with 227 additions and 100 deletions

View File

@@ -0,0 +1,8 @@
package oss
import "github.com/gin-gonic/gin"
type Uploader interface {
PutFile(ctx *gin.Context) (string, error)
PutImg(imageURL string) (string, error)
}