33 lines
738 B
Go
33 lines
738 B
Go
// ================================================================================
|
|
// 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 {
|
|
UploadImage(ctx context.Context, in *model.UploadImageIn) (*model.UploadImageOut, 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
|
|
}
|