feat(kol): marketplace + subscription admin services + publish fan-out
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user