package routes import ( "github.com/gin-gonic/gin" smokehandler "wx_service/internal/smoke/handler" ) func registerSmokeRoutes(protected *gin.RouterGroup, smokeHandler *smokehandler.SmokeHandler) { // 戒烟/抽烟记录(与 video 去水印功能在路由前缀上区分开) smoke := protected.Group("/smoke") { smoke.GET("/dashboard", smokeHandler.Dashboard) smoke.POST("/logs", smokeHandler.Create) smoke.GET("/logs", smokeHandler.List) smoke.GET("/logs/latest", smokeHandler.LatestLogs) smoke.GET("/logs/:id", smokeHandler.Get) smoke.PUT("/logs/:id", smokeHandler.Update) smoke.DELETE("/logs/:id", smokeHandler.Delete) // AI 戒烟建议(会员优先;非会员需看广告解锁) smoke.GET("/ai/advice", smokeHandler.GetAIAdvice) smoke.POST("/ai/advice_unlocks", smokeHandler.UnlockAIAdvice) } }