-
Notifications
You must be signed in to change notification settings - Fork 14
/
file.go
40 lines (33 loc) · 1.07 KB
/
file.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// ================================================================================
// 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"
"github.com/iimeta/iim-client/internal/model"
)
type (
IFile interface {
// 头像上传上传
Avatar(ctx context.Context) (*model.UploadAvatarRes, error)
// 图片上传
Image(ctx context.Context) (*model.UploadImageRes, error)
// 批量上传初始化
InitiateMultipart(ctx context.Context, params model.UploadInitiateMultipartReq) (*model.UploadInitiateMultipartRes, error)
// 批量分片上传
MultipartSplitUpload(ctx context.Context, params model.UploadMultipartReq) (*model.UploadMultipartRes, error)
}
)
var (
localFile IFile
)
func File() IFile {
if localFile == nil {
panic("implement not found for interface IFile, forgot register?")
}
return localFile
}
func RegisterFile(i IFile) {
localFile = i
}