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

View File

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