互动
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
452 B

5 years ago
  1. package client
  2. import (
  3. "hudongzhuanjia/controllers"
  4. "hudongzhuanjia/models"
  5. "hudongzhuanjia/utils/code"
  6. )
  7. type LiveCtl struct {
  8. controllers.BaseCtl
  9. }
  10. // 详情
  11. func (t *LiveCtl) Detail() {
  12. activityId := t.MustGetInt64("activity_id")
  13. live := new(models.LiveConfig)
  14. exist, err := live.GetByActivityId(activityId)
  15. t.CheckErr(err)
  16. t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "直播活动不存在")
  17. live.AdminLiveUrl = ""
  18. t.JSON(live)
  19. }