Files
rootandClaude Opus 4.7 79ac89b458 Initial commit
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-11-07 10:47:18 +08:00

54 lines
2.3 KiB
Go

package router
import (
"videoweb/web/api/web_playlet"
"github.com/gin-gonic/gin"
)
func playletRouter(router *gin.RouterGroup) {
group := router.Group("/playlet")
{
group.GET("/home-config/topic/options", web_playlet.HomeConfigTopicOptions)
group.GET("/list", web_playlet.List)
group.GET("/sales", web_playlet.Sales)
group.POST("/add", web_playlet.Add)
group.POST("/update", web_playlet.Update)
group.POST("/del", web_playlet.Del)
group.POST("/status/set", web_playlet.SetStatus)
group.POST("/online-at/fill", web_playlet.FillOnlineAt)
group.POST("/recommend/set", web_playlet.SetRecommend)
group.POST("/featured/set", web_playlet.SetFeatured)
group.POST("/operate-type/set", web_playlet.SetOperateType)
group.POST("/banner/set", web_playlet.SetBanner)
group.POST("/theme/set", web_playlet.SetTheme)
group.POST("/tag/set", web_playlet.SetTag)
group.POST("/category/set", web_playlet.SetCategory)
group.POST("/like/virtual/set", web_playlet.SetVirtualLike)
group.POST("/pay-type/set", web_playlet.SetPayType)
group.POST("/watermark/reset", web_playlet.ResetWatermark)
group.POST("/slug/sync", web_playlet.SyncSlug)
group.GET("/chapter/list", web_playlet.ChapterList)
group.POST("/chapter/add", web_playlet.ChapterAdd)
group.POST("/chapter/update", web_playlet.ChapterUpdate)
group.POST("/chapter/del", web_playlet.ChapterDel)
group.POST("/chapter/status/fill", web_playlet.ChapterFillStatus)
group.POST("/chapter/status/set", web_playlet.ChapterSetStatus)
group.POST("/chapter/pay-type/set", web_playlet.ChapterSetPayType)
group.POST("/chapter/sync", web_playlet.ChapterSync)
group.GET("/theme/list", web_playlet.ThemeList)
group.GET("/topic-group/list", web_playlet.TopicGroupList)
group.POST("/topic-group/add", web_playlet.TopicGroupAdd)
group.POST("/topic-group/update", web_playlet.TopicGroupUpdate)
group.POST("/topic-group/del", web_playlet.TopicGroupDel)
group.POST("/theme/add", web_playlet.ThemeAdd)
group.POST("/theme/update", web_playlet.ThemeUpdate)
group.POST("/theme/recommend/set", web_playlet.SetThemeRecommend)
group.POST("/theme/del", web_playlet.ThemeDel)
group.GET("/tag/list", web_playlet.TagList)
group.POST("/tag/add", web_playlet.TagAdd)
group.POST("/tag/update", web_playlet.TagUpdate)
group.POST("/tag/del", web_playlet.TagDel)
}
}