mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 02:03:42 +08:00
feat: delete the old avatar image file when update the user profile
This commit is contained in:
@@ -3,6 +3,7 @@ package oss
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
type Uploader interface {
|
||||
PutFile(ctx *gin.Context) (string, error)
|
||||
PutFile(ctx *gin.Context, name string) (string, error)
|
||||
PutImg(imageURL string) (string, error)
|
||||
Delete(fileURL string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user