feat: update provider

This commit is contained in:
Rogee
2025-05-13 14:31:44 +08:00
parent 2cf3b858b7
commit bd9e4df231
3 changed files with 16 additions and 2 deletions

View File

@@ -41,10 +41,12 @@ func Provide(opts ...opt.Option) error {
return err
}
if err := container.Container.Provide(func(
job *job.Job,
oss *ali.OSSClient,
wepay *wepay.Client,
) (*posts, error) {
obj := &posts{
job: job,
oss: oss,
wepay: wepay,
}