123456789101112131415161718192021222324252627 |
- package ipcast
- import (
- "github.com/gin-gonic/gin"
- v1 "lcfns/api/v1"
- )
- type IpcastRouter struct {
- }
- func (c *IpcastRouter) InitInfoRouter(priRouter, pubRouter *gin.RouterGroup) {
- var ipApi = v1.ApiGroupApp.IpcastApiGroup.IpcastApi
- ipGroup := priRouter.Group("ipcast")
- {
- ipGroup.GET("list", ipApi.List)
- ipGroup.POST("play", ipApi.Play)
- ipGroup.DELETE("stop", ipApi.Stop)
- ipGroup.GET("status", ipApi.Status)
- ipGroup.GET("ping", ipApi.Ping)
- ipGroup.POST("volume", ipApi.Volume)
- ipGroup.POST("playAudio", ipApi.PlayAudio)
- }
- pub := pubRouter.Group("ipcast")
- {
- pub.GET("AudioSource/:id", ipApi.AudioSource)
- }
- }
|