Initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"stat/api/advertiseApi"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func adsRouter(router *gin.RouterGroup) {
|
||||
// 广告
|
||||
ads := router.Group("/ads")
|
||||
{
|
||||
ads.POST("/list", advertiseApi.ListAds)
|
||||
ads.POST("/add", advertiseApi.AddAds)
|
||||
ads.POST("/update", advertiseApi.UpdateAds)
|
||||
ads.POST("/del", advertiseApi.DelAds)
|
||||
// 外部获取广告
|
||||
ads.POST("/get", advertiseApi.GetAds)
|
||||
// 广告点击
|
||||
ads.POST("/click", advertiseApi.ClickAds)
|
||||
// 广告统计
|
||||
ads.POST("/stat", advertiseApi.GetAdvertiseStat)
|
||||
// 广告统计
|
||||
ads.POST("/stattotal", advertiseApi.GetAdvertiseTotalStat)
|
||||
}
|
||||
|
||||
// 广告位置
|
||||
adsLoc := router.Group("/adsLoc")
|
||||
{
|
||||
adsLoc.POST("/list", advertiseApi.ListAdsLoc)
|
||||
adsLoc.POST("/add", advertiseApi.AddAdsLoc)
|
||||
adsLoc.POST("/update", advertiseApi.UpdateAdsLoc)
|
||||
adsLoc.POST("/del", advertiseApi.DelAdsLoc)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user