|
@@ -88,6 +88,11 @@ func route(r *gin.RouterGroup) { |
|
|
rCircleFriends(r.Group("/circleFriends")) |
|
|
rCircleFriends(r.Group("/circleFriends")) |
|
|
rComm(r.Group("/comm")) |
|
|
rComm(r.Group("/comm")) |
|
|
|
|
|
|
|
|
|
|
|
rAdvertising := r.Group("/advertising") //广告 |
|
|
|
|
|
{ |
|
|
|
|
|
rAdvertising.POST("/check", hdl.AdvertisingCheck) //广告位判断能不能看 |
|
|
|
|
|
rAdvertising.POST("/state", hdl.AdvertisingState) //广告位状态 |
|
|
|
|
|
} |
|
|
rHomePage := r.Group("/homePage") |
|
|
rHomePage := r.Group("/homePage") |
|
|
{ |
|
|
{ |
|
|
rHomePage.GET("/index", hdl.HomePage) // 主页 |
|
|
rHomePage.GET("/index", hdl.HomePage) // 主页 |
|
@@ -202,11 +207,6 @@ func rCircleFriends(r *gin.RouterGroup) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func rComm(r *gin.RouterGroup) { |
|
|
func rComm(r *gin.RouterGroup) { |
|
|
rCommAdvertising := r.Group("/advertising") |
|
|
|
|
|
{ |
|
|
|
|
|
rCommAdvertising.POST("/advertising/check", hdl.AdvertisingCheck) //广告位判断能不能看 |
|
|
|
|
|
rCommAdvertising.POST("/advertising/state", hdl.AdvertisingState) //广告位状态 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
r.POST("/getOssUrl", comm.GetOssUrl) // 获取阿里云上传PutObject所需的签名URL |
|
|
r.POST("/getOssUrl", comm.GetOssUrl) // 获取阿里云上传PutObject所需的签名URL |
|
|
r.GET("/accessRecords", comm.AccessRecords) // 访问记录 |
|
|
r.GET("/accessRecords", comm.AccessRecords) // 访问记录 |
|
|