init: 初始化 web_hgdjb_server 项目
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"videoweb/web/api/web_video"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func videoRouter(router *gin.RouterGroup) {
|
||||
advitise := router.Group("/videoinfo")
|
||||
{
|
||||
advitise.POST("/list", web_video.GetVideoInfo)
|
||||
advitise.POST("/update", web_video.UpdateOneVideoInfo)
|
||||
advitise.POST("/del", web_video.DelOneVideoInfo)
|
||||
advitise.POST("/sync", web_video.SyncVideoInfo)
|
||||
advitise.POST("/addcoll", web_video.AddOneVideoCollection)
|
||||
advitise.POST("/setFakeWatchTimes", web_video.SetVideoFakeWatchTimes)
|
||||
advitise.POST("/category/set", web_video.SetCategory)
|
||||
advitise.POST("/transcode", web_video.TranscodeVideo)
|
||||
advitise.POST("/slug/sync", web_video.SyncSlug)
|
||||
}
|
||||
videocategory := router.Group("/videocategory")
|
||||
{
|
||||
videocategory.POST("/list", web_video.GetVideoCategory)
|
||||
videocategory.POST("/update", web_video.UpdateOneVideoCategory)
|
||||
videocategory.POST("/del", web_video.DelOneVideoCategory)
|
||||
videocategory.POST("/add", web_video.AddOneVideoCategory)
|
||||
}
|
||||
videotag := router.Group("/videotag")
|
||||
{
|
||||
videotag.POST("/list", web_video.GetVideoTagInfo)
|
||||
videotag.POST("/update", web_video.UpdateOneVideoTagInfo)
|
||||
videotag.POST("/del", web_video.DelOneVideoTagInfo)
|
||||
videotag.POST("/add", web_video.AddOneVideoTagInfo)
|
||||
}
|
||||
|
||||
videocreater := router.Group("/videocreater")
|
||||
{
|
||||
videocreater.POST("/list", web_video.GetVideoCreater)
|
||||
videocreater.POST("/update", web_video.UpdateOneVideoCreater)
|
||||
videocreater.POST("/del", web_video.DelOneVideoCreater)
|
||||
videocreater.POST("/add", web_video.AddOneVideoCreater)
|
||||
}
|
||||
videoTopic := router.Group("/videotopic")
|
||||
{
|
||||
videoTopic.POST("/list", web_video.GetVideoTopic)
|
||||
videoTopic.POST("/update", web_video.UpdateOneVideoTopic)
|
||||
videoTopic.POST("/del", web_video.DelOneVideoTopic)
|
||||
videoTopic.POST("/add", web_video.AddOneVideoTopic)
|
||||
}
|
||||
|
||||
router.GET("/m3u8/*key", web_video.Play)
|
||||
router.GET("/transm3u8/*key", web_video.TranscodeM3u8)
|
||||
router.GET("/enkey", web_video.Enkey)
|
||||
router.GET("/newenkey", web_video.NewEnkey)
|
||||
router.GET("/lsjenkey", web_video.LsjEnkey)
|
||||
router.GET("/videotag/hottag", web_video.GetVideoPlayData)
|
||||
}
|
||||
Reference in New Issue
Block a user