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.
24 lines
447 B
24 lines
447 B
package http |
|
|
|
import ( |
|
"go-common/app/interface/main/tv/model" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
//ugcPlayurl is used for getting ugc play url |
|
func ugcPlayurl(c *bm.Context) { |
|
var ( |
|
err error |
|
mid int64 |
|
) |
|
param := new(model.PlayURLReq) |
|
if err = c.Bind(param); err != nil { |
|
return |
|
} |
|
if param.AccessKey != "" { |
|
if cmid, ok := c.Get("mid"); ok { |
|
mid = cmid.(int64) |
|
} |
|
} |
|
c.JSONMap(gobSvc.UgcPlayurl(c, param, mid)) |
|
}
|
|
|