feat: 实现平台抽成、提现审批、异步任务集成及安全审计功能

This commit is contained in:
2025-12-30 14:54:19 +08:00
parent 5e8dbec806
commit ee1acae3ed
25 changed files with 985 additions and 60 deletions

View File

@@ -1,6 +1,7 @@
package services
import (
"quyun/v2/providers/job"
"quyun/v2/providers/jwt"
"go.ipao.vip/atom"
@@ -11,6 +12,13 @@ import (
)
func Provide(opts ...opt.Option) error {
if err := container.Container.Provide(func() (*audit, error) {
obj := &audit{}
return obj, nil
}); err != nil {
return err
}
if err := container.Container.Provide(func() (*common, error) {
obj := &common{}
@@ -32,8 +40,12 @@ func Provide(opts ...opt.Option) error {
}); err != nil {
return err
}
if err := container.Container.Provide(func() (*notification, error) {
obj := &notification{}
if err := container.Container.Provide(func(
job *job.Job,
) (*notification, error) {
obj := &notification{
job: job,
}
return obj, nil
}); err != nil {
@@ -47,6 +59,7 @@ func Provide(opts ...opt.Option) error {
return err
}
if err := container.Container.Provide(func(
audit *audit,
common *common,
content *content,
creator *creator,
@@ -59,6 +72,7 @@ func Provide(opts ...opt.Option) error {
wallet *wallet,
) (contracts.Initial, error) {
obj := &services{
audit: audit,
common: common,
content: content,
creator: creator,