feat: chunk uploads
This commit is contained in:
@@ -3,7 +3,6 @@ package middlewares
|
||||
import (
|
||||
"backend/providers/app"
|
||||
"backend/providers/jwt"
|
||||
"backend/providers/storage"
|
||||
"backend/providers/wechat"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
@@ -13,10 +12,9 @@ import (
|
||||
type Middlewares struct {
|
||||
log *log.Entry `inject:"false"`
|
||||
|
||||
app *app.Config
|
||||
storagePath *storage.Config
|
||||
jwt *jwt.JWT
|
||||
client *wechat.Client
|
||||
app *app.Config
|
||||
jwt *jwt.JWT
|
||||
client *wechat.Client
|
||||
}
|
||||
|
||||
func (f *Middlewares) Prepare() error {
|
||||
|
||||
@@ -3,7 +3,6 @@ package middlewares
|
||||
import (
|
||||
"backend/providers/app"
|
||||
"backend/providers/jwt"
|
||||
"backend/providers/storage"
|
||||
"backend/providers/wechat"
|
||||
|
||||
"git.ipao.vip/rogeecn/atom/container"
|
||||
@@ -15,13 +14,11 @@ func Provide(opts ...opt.Option) error {
|
||||
app *app.Config,
|
||||
client *wechat.Client,
|
||||
jwt *jwt.JWT,
|
||||
storagePath *storage.Config,
|
||||
) (*Middlewares, error) {
|
||||
obj := &Middlewares{
|
||||
app: app,
|
||||
client: client,
|
||||
jwt: jwt,
|
||||
storagePath: storagePath,
|
||||
app: app,
|
||||
client: client,
|
||||
jwt: jwt,
|
||||
}
|
||||
if err := obj.Prepare(); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user