feat: add super comment governance and finance oversight

This commit is contained in:
2026-01-16 10:37:24 +08:00
parent f7db11a4df
commit 3af3c854c9
16 changed files with 4139 additions and 285 deletions

View File

@@ -24,6 +24,13 @@ func Provide(opts ...opt.Option) error {
}); err != nil {
return err
}
if err := container.Container.Provide(func() (*comments, error) {
obj := &comments{}
return obj, nil
}); err != nil {
return err
}
if err := container.Container.Provide(func() (*contents, error) {
obj := &contents{}
@@ -52,6 +59,13 @@ func Provide(opts ...opt.Option) error {
}); err != nil {
return err
}
if err := container.Container.Provide(func() (*finance, error) {
obj := &finance{}
return obj, nil
}); err != nil {
return err
}
if err := container.Container.Provide(func() (*notifications, error) {
obj := &notifications{}
@@ -83,10 +97,12 @@ func Provide(opts ...opt.Option) error {
if err := container.Container.Provide(func(
assets *assets,
auditLogs *auditLogs,
comments *comments,
contents *contents,
coupons *coupons,
creatorApplications *creatorApplications,
creators *creators,
finance *finance,
middlewares *middlewares.Middlewares,
notifications *notifications,
orders *orders,
@@ -100,10 +116,12 @@ func Provide(opts ...opt.Option) error {
obj := &Routes{
assets: assets,
auditLogs: auditLogs,
comments: comments,
contents: contents,
coupons: coupons,
creatorApplications: creatorApplications,
creators: creators,
finance: finance,
middlewares: middlewares,
notifications: notifications,
orders: orders,