mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-11 03:33:48 +08:00
feat: attachments manage function is ready
This commit is contained in:
@@ -3,9 +3,10 @@ package oss
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
type File struct {
|
||||
Size int64
|
||||
URL string
|
||||
Ext string
|
||||
Name string `json:"name"`
|
||||
Size int64 `json:"size"`
|
||||
URL string `json:"url"`
|
||||
Ext string `json:"ext"`
|
||||
}
|
||||
type Uploader interface {
|
||||
PutFile(ctx *gin.Context, name string) (File, error)
|
||||
|
||||
Reference in New Issue
Block a user