50 lines
2.2 KiB
Go
50 lines
2.2 KiB
Go
package router
|
|
|
|
import (
|
|
"91porn-server/app/api/vidctrl"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func vidRouter(router *gin.RouterGroup) {
|
|
group := router.Group("/vid")
|
|
{
|
|
group.GET("/location/list", vidctrl.GetLocationList)
|
|
group.GET("/location/hot", vidctrl.GetLocationHot)
|
|
group.GET("/info", vidctrl.GetVidInfo)
|
|
group.POST("/submit", vidctrl.Submit)
|
|
group.POST("/play", vidctrl.PlayRecord)
|
|
group.POST("/play/consume", vidctrl.ConsumeWatchCount)
|
|
group.GET("/hot/list", vidctrl.HotList)
|
|
group.GET("/hotkw/list", vidctrl.HotKWList)
|
|
group.GET("/location/info", vidctrl.GetLocation)
|
|
group.GET("/user/count", vidctrl.GetWatchCount)
|
|
group.POST("/remove", vidctrl.RemoveMyVideos)
|
|
group.GET("/news/list", vidctrl.GetNewsList)
|
|
group.POST("/news/unlike", vidctrl.DoUnlike)
|
|
group.GET("/community/recommend", vidctrl.CommunityRecommend)
|
|
group.GET("/module/:subModuleID/refresh", vidctrl.RefreshModuleVideos)
|
|
group.GET("/module/:subModuleID", vidctrl.ModuleVideoList)
|
|
group.GET("/section/:sectionID", vidctrl.SectionVideoList)
|
|
group.GET("/section/changeVideo/:sectionID", vidctrl.ChangeSectionVideoList)
|
|
group.GET("/section/changeMedia/:sectionID", vidctrl.ChangeSectionMediaList)
|
|
group.GET("/section/list", vidctrl.SectionList)
|
|
group.GET("/moduleVideo", vidctrl.AllVideosOfModule)
|
|
group.GET("/list", vidctrl.List)
|
|
group.GET("/ranking", vidctrl.Ranking)
|
|
group.GET("/sections", vidctrl.Sections)
|
|
group.GET("/module/short/all", vidctrl.RecommendShortVideos)
|
|
group.GET("/recommend/list", vidctrl.RecommendList)
|
|
group.POST("/recommand/vidPlay", vidctrl.VidPlayRecommand) // 视频播放页的推荐视频列表
|
|
group.GET("/recommand/search", vidctrl.SearchRecommand) // 搜索页面的视频播放列表
|
|
group.GET("/library", vidctrl.Library) // 片库首页
|
|
group.POST("/library/search", vidctrl.LibrarySearch) // 片库搜索
|
|
// 折扣专区相关
|
|
group.GET("/discount/list", vidctrl.DiscountVidList)
|
|
group.GET("/discount/area", vidctrl.DiscountArea)
|
|
group.GET("/module/all/:subModuleID", vidctrl.SubModuleAllVideoList) // 首页视频猜你喜欢
|
|
group.GET("/home/new/list", vidctrl.HomeMostNewModuleVideoList) // 91pron 主页最新
|
|
|
|
}
|
|
}
|