feat: add smoke share token and read-only share APIs

This commit is contained in:
root
2026-03-10 18:53:01 +08:00
parent a4b466744c
commit 484aa96a6e
6 changed files with 409 additions and 1 deletions
+3 -1
View File
@@ -73,6 +73,7 @@ func main() {
&smokemodel.SmokeAIAdviceUnlock{},
&smokemodel.SmokeAINextSmoke{},
&smokemodel.SmokeMotivationQuote{},
&smokemodel.SmokeShare{},
&marketingmodel.MarketingCategory{},
&marketingmodel.MarketingTemplate{},
&marketingmodel.MarketingDownload{},
@@ -103,7 +104,8 @@ func main() {
smokeProfileService := smokeservice.NewSmokeProfileService(database.DB)
smokeNextService := smokeservice.NewSmokeNextService(database.DB)
smokeAINextService := smokeservice.NewSmokeAINextSmokeService(database.DB, config.AppConfig.AI)
smokeHandler := smokehandler.NewSmokeHandler(smokeLogService, smokeAIAdviceService, smokeProfileService, smokeNextService, smokeAINextService)
smokeShareService := smokeservice.NewSmokeShareService(database.DB)
smokeHandler := smokehandler.NewSmokeHandler(smokeLogService, smokeAIAdviceService, smokeProfileService, smokeNextService, smokeAINextService, smokeShareService)
redeemCodeService := membershipservice.NewRedeemCodeService(database.DB, config.AppConfig.Admin.Token)
redeemCodeHandler := membershiphandler.NewRedeemCodeHandler(redeemCodeService)