go-common/app/interface/main/mcn/service/upload.go

12 lines
269 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
"io"
)
// Upload http upload file.
func (s *Service) Upload(c context.Context, fileName, fileType string, expire int64, body io.Reader) (location string, err error) {
return s.bfsdao.Upload(c, fileName, fileType, expire, body)
}