23 lines
405 B
Go
Executable File
23 lines
405 B
Go
Executable File
package tasks
|
|
|
|
import (
|
|
"git.ipao.vip/rogeecn/atom/container"
|
|
"git.ipao.vip/rogeecn/atom/utils/opt"
|
|
hashids "github.com/speps/go-hashids/v2"
|
|
)
|
|
|
|
func Provide(opts ...opt.Option) error {
|
|
if err := container.Container.Provide(func(
|
|
hashId *hashids.HashID,
|
|
) (*DiscoverMedias, error) {
|
|
obj := &DiscoverMedias{
|
|
hashId: hashId,
|
|
}
|
|
return obj, nil
|
|
}); err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|