This commit is contained in:
wangchuxiao 2022-12-09 12:18:38 +08:00
parent 4d56dfdfa2
commit 0fbf882059
2 changed files with 16 additions and 12 deletions

View File

@ -57,8 +57,8 @@ func SetMessageReactionExtensions(c *gin.Context) {
} }
resp.ErrCode = respPb.ErrCode resp.ErrCode = respPb.ErrCode
resp.ErrMsg = respPb.ErrMsg resp.ErrMsg = respPb.ErrMsg
resp.FailedList = respPb.FailedList resp.Data.FailedList = respPb.FailedList
resp.SuccessList = respPb.SuccessList resp.Data.SuccessList = respPb.SuccessList
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp) log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp)
c.JSON(http.StatusOK, resp) c.JSON(http.StatusOK, resp)
@ -105,8 +105,8 @@ func GetMessageListReactionExtensions(c *gin.Context) {
} }
resp.ErrCode = respPb.ErrCode resp.ErrCode = respPb.ErrCode
resp.ErrMsg = respPb.ErrMsg resp.ErrMsg = respPb.ErrMsg
resp.FailedList = respPb.FailedList resp.Data.FailedList = respPb.FailedList
resp.SuccessList = respPb.SuccessList resp.Data.SuccessList = respPb.SuccessList
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp) log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp)
c.JSON(http.StatusOK, resp) c.JSON(http.StatusOK, resp)
} }
@ -152,8 +152,8 @@ func AddMessageReactionExtensions(c *gin.Context) {
} }
resp.ErrCode = respPb.ErrCode resp.ErrCode = respPb.ErrCode
resp.ErrMsg = respPb.ErrMsg resp.ErrMsg = respPb.ErrMsg
resp.FailedList = respPb.FailedList resp.Data.FailedList = respPb.FailedList
resp.SuccessList = respPb.SuccessList resp.Data.SuccessList = respPb.SuccessList
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp) log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp)
c.JSON(http.StatusOK, resp) c.JSON(http.StatusOK, resp)
} }
@ -199,8 +199,8 @@ func DeleteMessageReactionExtensions(c *gin.Context) {
} }
resp.ErrCode = respPb.ErrCode resp.ErrCode = respPb.ErrCode
resp.ErrMsg = respPb.ErrMsg resp.ErrMsg = respPb.ErrMsg
resp.FailedList = respPb.FailedList resp.Data.FailedList = respPb.FailedList
resp.SuccessList = respPb.SuccessList resp.Data.SuccessList = respPb.SuccessList
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp) log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp)
c.JSON(http.StatusOK, resp) c.JSON(http.StatusOK, resp)
} }

View File

@ -68,8 +68,10 @@ type ModifyMessageReactionExtensionsReq struct {
type ModifyMessageReactionExtensionsResp struct { type ModifyMessageReactionExtensionsResp struct {
CommResp CommResp
SuccessList []*sdk_ws.ExtendMsg `json:"successList"` Data struct {
FailedList []*sdk_ws.ExtendMsg `json:"failedList"` SuccessList []*sdk_ws.ExtendMsg `json:"successList"`
FailedList []*sdk_ws.ExtendMsg `json:"failedList"`
} `json:"data"`
} }
type OperateMessageListReactionExtensionsReq struct { type OperateMessageListReactionExtensionsReq struct {
@ -81,8 +83,10 @@ type OperateMessageListReactionExtensionsReq struct {
type OperateMessageListReactionExtensionsResp struct { type OperateMessageListReactionExtensionsResp struct {
CommResp CommResp
SuccessList []*sdk_ws.ExtendMsg `json:"successList"` Data struct {
FailedList []*sdk_ws.ExtendMsg `json:"failedList"` SuccessList []*sdk_ws.ExtendMsg `json:"successList"`
FailedList []*sdk_ws.ExtendMsg `json:"failedList"`
} `json:"data"`
} }
type SetMessageReactionExtensionsCallbackReq ModifyMessageReactionExtensionsReq type SetMessageReactionExtensionsCallbackReq ModifyMessageReactionExtensionsReq