mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-10 11:13:42 +08:00
feat: add oss service factory implements, add support for setting custom upload handler, localstorage and minio oss
This commit is contained in:
8
api/service/oss/uploader.go
Normal file
8
api/service/oss/uploader.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user