@@ -0,0 +1,62 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/app/api/officialWebsitectrl"
|
||||
"91porn-server/app/api/updownctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func newOfficialWebsiteRoute(router *gin.Engine) {
|
||||
g := router.Group("/officialWebsite")
|
||||
g.GET("", officialWebsitectrl.GetBasicData) // 品牌站基础数据接口,包含基础静态数据和CMS动态数据
|
||||
|
||||
hero := g.Group("/hero")
|
||||
{
|
||||
hero.GET("/list", officialWebsitectrl.HeroList)
|
||||
hero.GET("/:id", officialWebsitectrl.HeroDetail)
|
||||
}
|
||||
|
||||
album := g.Group("/album")
|
||||
{
|
||||
album.GET("/list", officialWebsitectrl.AlbumList)
|
||||
album.GET("/:id", officialWebsitectrl.AlbumDetail)
|
||||
}
|
||||
|
||||
video := g.Group("/video")
|
||||
{
|
||||
video.GET("/list", officialWebsitectrl.VideoList)
|
||||
video.GET("/:id", officialWebsitectrl.VideoDetail)
|
||||
video.GET("/:id/m3u8/*source", officialWebsitectrl.VideoCheck, updownctrl.DownloadM3u8H5)
|
||||
}
|
||||
|
||||
tag := g.Group("/tag")
|
||||
{
|
||||
tag.GET("/list", officialWebsitectrl.TagList)
|
||||
}
|
||||
|
||||
recruitForm := g.Group("/recruitForm")
|
||||
{
|
||||
recruitForm.POST("/", officialWebsitectrl.RecruitForm)
|
||||
}
|
||||
|
||||
partner := g.Group("/partner")
|
||||
{
|
||||
partner.GET("/list", officialWebsitectrl.PartnerList)
|
||||
}
|
||||
|
||||
jobList := g.Group("/jobList")
|
||||
{
|
||||
jobList.GET("/list", officialWebsitectrl.JobList)
|
||||
}
|
||||
|
||||
business := g.Group("/business")
|
||||
{
|
||||
business.GET("/list", officialWebsitectrl.BusinessList)
|
||||
}
|
||||
news := g.Group("/news")
|
||||
{
|
||||
news.GET("/list", officialWebsitectrl.NewsList)
|
||||
news.GET("/:id", officialWebsitectrl.NewsDetail)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user