mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-09-08 19:48:03 +08:00
modify
This commit is contained in:
parent
4d56dfdfa2
commit
0fbf882059
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user