forked from all_user/stat_center
增加双端下载
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"stat/api/versionApi"
|
||||
"stat/common/enum/consts"
|
||||
"stat/middleware/auth"
|
||||
"stat/middleware/cors"
|
||||
@@ -103,6 +104,9 @@ func registerRouter(router *gin.Engine) {
|
||||
appcategoryRouter(rootRouter) // app分类
|
||||
userInviteRouter(rootRouter) // 兼容
|
||||
}
|
||||
|
||||
// 双端下载落地页(无需登陆鉴权)
|
||||
router.GET("/rsdownload/:appId/:channel", versionApi.CpcDownload)
|
||||
}
|
||||
|
||||
func setGinSwagger(router *gin.Engine) {
|
||||
|
||||
@@ -43,4 +43,13 @@ func versionRouter(router *gin.RouterGroup) {
|
||||
picture.POST("/del", versionApi.DelOneLandpage)
|
||||
picture.POST("/update", versionApi.UpdateOneLandpage)
|
||||
}
|
||||
|
||||
// CPC 下载配置管理
|
||||
cpc := router.Group("/cpc/download")
|
||||
{
|
||||
cpc.POST("/list", versionApi.CpcDownloadCfgList)
|
||||
cpc.POST("/add", versionApi.CpcDownloadCfgAdd)
|
||||
cpc.POST("/update", versionApi.CpcDownloadCfgUpdate)
|
||||
cpc.POST("/del", versionApi.CpcDownloadCfgDel)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user