feat(kol): marketplace + subscription admin services + publish fan-out

This commit is contained in:
2026-04-17 14:23:32 +08:00
parent df334c1e26
commit 99fc6c1af4
4 changed files with 565 additions and 2 deletions
+6
View File
@@ -49,7 +49,9 @@ type App struct {
Cache cache.Cache
KolProfiles repository.KolProfileRepository
KolPackages repository.KolPackageRepository
KolMarketplace repository.KolMarketplaceRepository
KolPrompts repository.KolPromptRepository
KolSubscriptions repository.KolSubscriptionRepository
KolAssists repository.KolAssistRepository
KolPromptAsset *tenantapp.KolPromptAsset
}
@@ -105,7 +107,9 @@ func New(configPath string) (*App, error) {
appCache := cache.New(cfg.Cache.Driver, rdb)
kolProfiles := repository.NewKolProfileRepository(pool)
kolPackages := repository.NewKolPackageRepository(pool)
kolMarketplace := repository.NewKolMarketplaceRepository(pool)
kolPrompts := repository.NewKolPromptRepository(pool)
kolSubscriptions := repository.NewKolSubscriptionRepository(pool)
kolAssists := repository.NewKolAssistRepository(pool)
kolPromptAsset := tenantapp.NewKolPromptAsset(objectStorageClient)
@@ -163,7 +167,9 @@ func New(configPath string) (*App, error) {
Cache: appCache,
KolProfiles: kolProfiles,
KolPackages: kolPackages,
KolMarketplace: kolMarketplace,
KolPrompts: kolPrompts,
KolSubscriptions: kolSubscriptions,
KolAssists: kolAssists,
KolPromptAsset: kolPromptAsset,
}, nil