From faec0d8f43513ca45177303154ef6a025c4ce180 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 4 Dec 2024 14:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/router/router.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/router/router.go b/app/router/router.go index 347101a..d5d79ff 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -88,6 +88,11 @@ func route(r *gin.RouterGroup) { rCircleFriends(r.Group("/circleFriends")) rComm(r.Group("/comm")) + rAdvertising := r.Group("/advertising") //广告 + { + rAdvertising.POST("/check", hdl.AdvertisingCheck) //广告位判断能不能看 + rAdvertising.POST("/state", hdl.AdvertisingState) //广告位状态 + } rHomePage := r.Group("/homePage") { rHomePage.GET("/index", hdl.HomePage) // 主页 @@ -202,11 +207,6 @@ func rCircleFriends(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.GET("/accessRecords", comm.AccessRecords) // 访问记录