fix: issues

This commit is contained in:
yanghao05
2025-04-25 21:19:03 +08:00
parent b35abb2090
commit 5bc3ae468d
15 changed files with 129 additions and 64 deletions

View File

@@ -57,13 +57,11 @@ func Provide(opts ...opt.Option) error {
auth *auth,
pays *pays,
posts *posts,
weChat *weChat,
) (contracts.HttpRoute, error) {
obj := &Routes{
auth: auth,
pays: pays,
posts: posts,
weChat: weChat,
auth: auth,
pays: pays,
posts: posts,
}
if err := obj.Prepare(); err != nil {
return nil, err
@@ -73,12 +71,5 @@ func Provide(opts ...opt.Option) error {
}, atom.GroupRoutes); err != nil {
return err
}
if err := container.Container.Provide(func() (*weChat, error) {
obj := &weChat{}
return obj, nil
}); err != nil {
return err
}
return nil
}