| 1234567891011121314 |
- package bll
- import (
- "context"
- "net/http"
- "yx-dataset-server/app/schema"
- )
- // IFile 文件管理业务逻辑接口
- type IFile interface {
- // 文件上传
- Upload(ctx context.Context, r *http.Request, formKey, bucket string) (*schema.FileInfo, error)
- Download(ctx context.Context, filePath string) ([]byte, string, error)
- }
|