init: hgmj server initial commit

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 16:50:13 +08:00
co-authored by Claude Opus 4.7
commit 625e89c15d
1870 changed files with 254090 additions and 0 deletions
+36
View File
@@ -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 主页最新
}
}