实现图片上传到oss

This commit is contained in:
2025-06-06 10:24:49 +08:00
parent 830f9c236b
commit ffc01164f7
12 changed files with 176 additions and 0 deletions

View File

@ -0,0 +1,32 @@
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
"server/internal/model"
)
type (
IUpload interface {
Upload(ctx context.Context, in *model.UploadIn) (res *model.UploadOut, err error)
}
)
var (
localUpload IUpload
)
func Upload() IUpload {
if localUpload == nil {
panic("implement not found for interface IUpload, forgot register?")
}
return localUpload
}
func RegisterUpload(i IUpload) {
localUpload = i
}