init: hgmj server initial commit
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91jd-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("/info", vidctrl.GetVidInfo)
|
||||
group.POST("/submit", vidctrl.Submit)
|
||||
group.POST("/play", vidctrl.PlayRecord)
|
||||
group.GET("/user/count", vidctrl.GetWatchCount)
|
||||
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("/recommend/list", vidctrl.RecommendList)
|
||||
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 主页最新
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user