You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
498 B

package live_streams
import (
"github.com/gogf/gf/v2/net/ghttp"
"practice_Go/api/v1/live_streams"
live "practice_Go/internal/service"
)
type cLive struct{}
var Live = cLive{}
func (c *cLive) GetLiveList(r *ghttp.Request) {
var req *live_streams.GetLiveListReq
if err := r.Parse(&req); err != nil {
r.Response.WriteJsonExit(err.Error())
}
res, err := live.Live().GetLiveList(r.Context(), req)
if err != nil {
r.Response.WriteJsonExit(err.Error())
}
r.Response.WriteJsonExit(res)
}