Files
arenax-server/internal/service/upload.go

33 lines
731 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 {
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
}