25 lines
657 B
Go
Executable File
25 lines
657 B
Go
Executable File
package router
|
|
|
|
import (
|
|
"91porn-server/app/api/mediactrl"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// mediaRouter 移动端接口
|
|
func mediaRouter(router *gin.RouterGroup) {
|
|
group := router.Group("/media")
|
|
{
|
|
group.GET("/list", mediactrl.List)
|
|
group.GET("/info", mediactrl.Info)
|
|
group.GET("/topic", mediactrl.GetTopicList)
|
|
group.GET("/library", mediactrl.Library)
|
|
group.POST("/library/search", mediactrl.LibrarySearch)
|
|
group.GET("/search", mediactrl.Search)
|
|
// 搜索推荐标签
|
|
group.GET("/recommend", mediactrl.Recommend)
|
|
group.GET("/ranking", mediactrl.Ranking)
|
|
group.GET("/hot", mediactrl.Hot)
|
|
group.GET("/my_buy", mediactrl.MyBuy)
|
|
}
|
|
}
|