del conversation bug fix

This commit is contained in:
Gordon 2022-08-05 14:42:39 +08:00
parent 319631b5c4
commit 87c64bdb2b

View File

@ -79,7 +79,7 @@ func DelSuperGroupMsg(c *gin.Context) {
resp api.DelSuperGroupMsgResp resp api.DelSuperGroupMsgResp
) )
rpcReq := &rpc.DelSuperGroupMsgReq{} rpcReq := &rpc.DelSuperGroupMsgReq{}
utils.CopyStructFields(req, &req) utils.CopyStructFields(rpcReq, &req)
if err := c.BindJSON(&req); err != nil { if err := c.BindJSON(&req); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()}) c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
return return