Compare commits
2 Commits
1e559ac29d
...
fa1753389e
| Author | SHA1 | Date |
|---|---|---|
|
|
fa1753389e | |
|
|
27a8561448 |
|
|
@ -166,13 +166,13 @@ func DelFriendOrGroup(c *gin.Context) {
|
|||
} else if req.Type == 4 {
|
||||
//群管理员删除群成员
|
||||
if req.GroupID == 0 {
|
||||
c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed"})
|
||||
c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed,group_id is null"})
|
||||
return
|
||||
}
|
||||
//获取群
|
||||
group := dao.FindGroupByID(req.GroupID)
|
||||
if len(group) == 0 {
|
||||
c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed"})
|
||||
c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed group not found"})
|
||||
return
|
||||
}
|
||||
//判断是否是群主
|
||||
|
|
|
|||
Loading…
Reference in New Issue