feat: add audit logs and system configs

This commit is contained in:
2026-01-15 20:07:36 +08:00
parent 914df9edf2
commit b3fc226bbe
25 changed files with 3325 additions and 108 deletions

View File

@@ -17,6 +17,13 @@ func Provide(opts ...opt.Option) error {
}); err != nil {
return err
}
if err := container.Container.Provide(func() (*auditLogs, error) {
obj := &auditLogs{}
return obj, nil
}); err != nil {
return err
}
if err := container.Container.Provide(func() (*contents, error) {
obj := &contents{}
@@ -75,6 +82,7 @@ func Provide(opts ...opt.Option) error {
}
if err := container.Container.Provide(func(
assets *assets,
auditLogs *auditLogs,
contents *contents,
coupons *coupons,
creatorApplications *creatorApplications,
@@ -84,12 +92,14 @@ func Provide(opts ...opt.Option) error {
orders *orders,
payoutAccounts *payoutAccounts,
reports *reports,
systemConfigs *systemConfigs,
tenants *tenants,
users *users,
withdrawals *withdrawals,
) (contracts.HttpRoute, error) {
obj := &Routes{
assets: assets,
auditLogs: auditLogs,
contents: contents,
coupons: coupons,
creatorApplications: creatorApplications,
@@ -99,6 +109,7 @@ func Provide(opts ...opt.Option) error {
orders: orders,
payoutAccounts: payoutAccounts,
reports: reports,
systemConfigs: systemConfigs,
tenants: tenants,
users: users,
withdrawals: withdrawals,
@@ -111,6 +122,13 @@ func Provide(opts ...opt.Option) error {
}, atom.GroupRoutes); err != nil {
return err
}
if err := container.Container.Provide(func() (*systemConfigs, error) {
obj := &systemConfigs{}
return obj, nil
}); err != nil {
return err
}
if err := container.Container.Provide(func() (*tenants, error) {
obj := &tenants{}