fonchain-fiee/pkg/router/media.go

28 lines
734 B
Go
Raw Normal View History

2025-05-23 05:25:47 +00:00
package router
import (
2025-06-06 03:53:54 +00:00
"fonchain-fiee/pkg/middleware"
"fonchain-fiee/pkg/service"
2025-05-23 05:25:47 +00:00
serviceCast "fonchain-fiee/pkg/service/cast"
"github.com/gin-gonic/gin"
)
func MediaRouter(r *gin.RouterGroup) {
//noAuth := r.Group("")
auth := r.Group("")
2025-06-06 03:53:54 +00:00
auth.Use(middleware.CheckWebLogin(service.AccountProvider))
2025-05-23 05:25:47 +00:00
media := auth.Group("media")
{
2025-06-11 01:16:11 +00:00
media.POST("user-list", serviceCast.MediaUserList)
media.POST("unbind-manager", serviceCast.UnbindManager)
media.POST("bind-manager", serviceCast.BindManager)
2025-05-23 05:25:47 +00:00
media.POST("update-account", serviceCast.UpdateMediaAccount)
}
2025-06-06 03:45:47 +00:00
work := auth.Group("work")
{
2025-06-11 01:16:11 +00:00
work.POST("update-work-image", serviceCast.UpdateWorkImage)
work.POST("update-work-video", serviceCast.UpdateWorkVideo)
2025-06-06 03:45:47 +00:00
}
2025-05-23 05:25:47 +00:00
}