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:
@@ -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)
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user