ziwen 2 年之前
父节点
当前提交
78e4cdaadc
共有 2 个文件被更改,包括 0 次插入5 次删除
  1. 0 4
      controller/voice_broadcast/voice_broadcast.go
  2. 0 1
      models/request/voice_broadcast.go

+ 0 - 4
controller/voice_broadcast/voice_broadcast.go

@@ -259,10 +259,6 @@ func AddStatistics(c *gin.Context) {
 		return
 		return
 	}
 	}
 
 
-	if req.UserId <= 0{
-		response.Fail("参数有误", c)
-	}
-
 	if req.BroadcastId <= 0{
 	if req.BroadcastId <= 0{
 		response.Fail("参数有误", c)
 		response.Fail("参数有误", c)
 	}
 	}

+ 0 - 1
models/request/voice_broadcast.go

@@ -35,7 +35,6 @@ type AddBroadcastReq struct {
 //}
 //}
 
 
 type AddBroadcastStatisticsReq struct {
 type AddBroadcastStatisticsReq struct {
-	UserId      int    `json:"user_id" `
 	Source      int    `json:"source" `
 	Source      int    `json:"source" `
 	BroadcastId int `json:"broadcast_id" `
 	BroadcastId int `json:"broadcast_id" `
 }
 }