You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
473 B
19 lines
473 B
|
2 years ago
|
package newsclassrouter
|
||
|
|
|
||
|
|
import (
|
||
|
|
"appPlatform/api/version1"
|
||
|
|
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
// 新闻类接口路由
|
||
|
|
func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) {
|
||
|
|
apiRouter := router.Group("news")
|
||
|
|
var newsClassRouter = version1.AppApiEntry.NewsClassApi
|
||
|
|
{
|
||
|
|
apiRouter.GET("", newsClassRouter.Index) //入口
|
||
|
|
apiRouter.POST("", newsClassRouter.Index) //入口
|
||
|
|
apiRouter.POST("hot_news", newsClassRouter.HotNews) //属性文章
|
||
|
|
}
|
||
|
|
}
|