feat: 互动处理
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
common "sundynix-go/model/commom/request"
|
||||
"sundynix-go/model/commom/response"
|
||||
"sundynix-go/model/radio/request"
|
||||
"sundynix-go/utils/auth"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.uber.org/zap"
|
||||
@@ -55,7 +56,8 @@ func (a *ProgramApi) GetProgramDetail(c *gin.Context) {
|
||||
response.FailWithMsg("参数错误: id不能为空", c)
|
||||
return
|
||||
}
|
||||
program, err := programService.GetProgramById(id)
|
||||
userId := auth.GetUserId(c)
|
||||
program, err := programService.GetProgramById(id, userId)
|
||||
if err != nil {
|
||||
global.Logger.Error("获取节目详情失败!", zap.Error(err))
|
||||
response.FailWithMsg(err.Error(), c)
|
||||
|
||||
Reference in New Issue
Block a user