feat: complete
This commit is contained in:
32
backend/modules/wechat/provider.gen.go
Executable file
32
backend/modules/wechat/provider.gen.go
Executable file
@@ -0,0 +1,32 @@
|
||||
package users
|
||||
|
||||
import (
|
||||
"backend/modules/users"
|
||||
"backend/providers/jwt"
|
||||
"backend/providers/storage"
|
||||
"backend/providers/wechat"
|
||||
|
||||
"git.ipao.vip/rogeecn/atom/container"
|
||||
"git.ipao.vip/rogeecn/atom/utils/opt"
|
||||
)
|
||||
|
||||
func Provide(opts ...opt.Option) error {
|
||||
if err := container.Container.Provide(func(
|
||||
client *wechat.Client,
|
||||
jwt *jwt.JWT,
|
||||
storagePath *storage.Config,
|
||||
userSvc *users.Service,
|
||||
) (*Controller, error) {
|
||||
obj := &Controller{
|
||||
client: client,
|
||||
jwt: jwt,
|
||||
storagePath: storagePath,
|
||||
userSvc: userSvc,
|
||||
}
|
||||
return obj, nil
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user