|
@@ -218,7 +218,7 @@ func SendBroadcastMsg(broadcastId, userId int) (errMsg string, err error) {
|
|
|
}
|
|
|
|
|
|
// CreateVoiceBroadcast 新增语音播报
|
|
|
-func CreateVoiceBroadcast(sectionId, varietyId, authorId int, broadcastName, sectionName, varietyName, author, voiceSeconds, voiceSize, voiceUrl, imgs string) (err error) {
|
|
|
+func CreateVoiceBroadcast(sectionId, varietyId, authorId, userId int, broadcastName, sectionName, varietyName, author, voiceSeconds, voiceSize, voiceUrl, imgs string) (resp response.Broadcast, err error) {
|
|
|
nowTime := time.Now().Local()
|
|
|
item := &voice_broadcast.VoiceBroadcast{
|
|
|
BroadcastName: broadcastName,
|
|
@@ -249,11 +249,12 @@ func CreateVoiceBroadcast(sectionId, varietyId, authorId int, broadcastName, sec
|
|
|
err = errors.New("新增语音播报及图片失败, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
+ resp = handleBroadcastItem(userId, item, imgList)
|
|
|
return
|
|
|
}
|
|
|
|
|
|
// EditVoiceBroadcast 编辑语音播报
|
|
|
-func EditVoiceBroadcast(broadcastId, sectionId, varietyId, authorId int, broadcastName, sectionName, varietyName, author, voiceSeconds, voiceSize, voiceUrl, imgs string) (err error) {
|
|
|
+func EditVoiceBroadcast(broadcastId, sectionId, varietyId, authorId, userId int, broadcastName, sectionName, varietyName, author, voiceSeconds, voiceSize, voiceUrl, imgs string) (resp response.Broadcast, err error) {
|
|
|
if broadcastId <= 0 {
|
|
|
return
|
|
|
}
|
|
@@ -291,6 +292,7 @@ func EditVoiceBroadcast(broadcastId, sectionId, varietyId, authorId int, broadca
|
|
|
err = errors.New("更新语音播报及图片失败, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
+ resp = handleBroadcastItem(userId, item, imgList)
|
|
|
return
|
|
|
}
|
|
|
|