b_file.go 330 B

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