feat(adcenter): 新增 POST /api/app/ads/click 广告点击上报到广告中心

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 16:19:52 +08:00
co-authored by Claude Opus 4.7
parent 4a794a4ccc
commit a1c12f0971
4 changed files with 97 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package router
import (
"videoweb/app/api/adsapi"
"github.com/gin-gonic/gin"
)
func adsRouter(r *gin.Engine) {
r.POST("/api/app/ads/click", adsapi.Click)
}
+1
View File
@@ -119,6 +119,7 @@ func registeRouter(r *gin.Engine) {
appInfoRouter(r)
translationRouter(r)
statcenterRouter(r)
adsRouter(r)
r.GET("/notpage", templatecache.WithCache(time.Minute*1), home.PageNotFound)
}