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

- 新增 configser.AdvertiseClickCenter / AsyncAdvertiseClick
- 新增 adsapi.Click handler,接收 AdsClickReq{adsId, location},异步转发
- 走广告中心 ${versionUrl}/api/stat/advitise/v2/click,appId=12
- 鉴权白名单放行

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 16:19:35 +08:00
co-authored by Claude Opus 4.7
parent 77fc73dce0
commit f037f11850
5 changed files with 98 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
@@ -122,6 +122,7 @@ func registeRouter(r *gin.Engine) {
translationRouter(r)
navigationRouter(r)
statcenterRouter(r)
adsRouter(r)
r.GET("/notpage", templatecache.WithCache(time.Minute*1), home.PageNotFound)
}