diff --git a/internal/api/msg/del_msg.go b/internal/api/msg/del_msg.go index 7ded12d59..0dc5d2003 100644 --- a/internal/api/msg/del_msg.go +++ b/internal/api/msg/del_msg.go @@ -80,6 +80,7 @@ func DelSuperGroupMsg(c *gin.Context) { ) rpcReq := &rpc.DelSuperGroupMsgReq{} if err := c.BindJSON(&req); err != nil { + log.NewError("", "args err:", err.Error()) c.JSON(http.StatusOK, gin.H{"errCode": 400, "errMsg": err.Error()}) return } diff --git a/pkg/base_info/msg.go b/pkg/base_info/msg.go index 92d30480a..2b12a2b2e 100644 --- a/pkg/base_info/msg.go +++ b/pkg/base_info/msg.go @@ -19,11 +19,11 @@ type CleanUpMsgResp struct { CommResp } type DelSuperGroupMsgReq struct { - UserID string `json:"userID,omitempty" binding:"required"` - GroupID string `json:"groupID,omitempty" binding:"required"` + UserID string `json:"userID" binding:"required"` + GroupID string `json:"groupID" binding:"required"` SeqList []uint32 `json:"seqList,omitempty"` IsAllDelete bool `json:"isAllDelete"` - OperationID string `json:"operationID,omitempty" binding:"required"` + OperationID string `json:"operationID" binding:"required"` } type DelSuperGroupMsgResp struct {