|
@@ -404,3 +404,28 @@ func MsgSend(c *gin.Context) {
|
|
|
}
|
|
|
response.Ok("操作成功", c)
|
|
|
}
|
|
|
+
|
|
|
+// BroadcastDetail 获取语音播报详情
|
|
|
+// @Tags 语音播报模块
|
|
|
+// @Description 获取语音播报详情
|
|
|
+// @Param broadcast_id query int true "语音播报ID"
|
|
|
+// @Success 200 {object} voiceResp.Broadcast
|
|
|
+// @failure 400 {string} string "获取失败"
|
|
|
+// @Router /detail [get]
|
|
|
+func MyVoiceBroadcastListCount(c *gin.Context) {
|
|
|
+ var req request.BroadcastListCountReq
|
|
|
+ if err := c.Bind(&req); err != nil {
|
|
|
+ response.Fail("参数有误", c)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if req.AuthorId <= 0 {
|
|
|
+ response.Fail("参数有误", c)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ resp, e := services.GetMyVoiceBroadcastListCount(req.AuthorId, req.SectionId)
|
|
|
+ if e != nil {
|
|
|
+ response.FailMsg("获取失败", "BroadcastDetail ErrMsg:"+e.Error(), c)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ response.OkData("获取成功", resp, c)
|
|
|
+}
|