upload.go 269 B

1234567891011
  1. package service
  2. import (
  3. "context"
  4. "io"
  5. )
  6. // Upload http upload file.
  7. func (s *Service) Upload(c context.Context, fileName, fileType string, expire int64, body io.Reader) (location string, err error) {
  8. return s.bfsdao.Upload(c, fileName, fileType, expire, body)
  9. }