mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-03 22:39:28 +08:00
reaction message add expiration
This commit is contained in:
parent
1acf21371b
commit
84df956293
@ -19,7 +19,7 @@ func SetMessageReactionExtensions(c *gin.Context) {
|
||||
var (
|
||||
req api.SetMessageReactionExtensionsCallbackReq
|
||||
resp api.SetMessageReactionExtensionsCallbackResp
|
||||
reqPb rpc.ModifyMessageReactionExtensionsReq
|
||||
reqPb rpc.SetMessageReactionExtensionsReq
|
||||
)
|
||||
|
||||
if err := c.BindJSON(&req); err != nil {
|
||||
@ -57,8 +57,7 @@ func SetMessageReactionExtensions(c *gin.Context) {
|
||||
}
|
||||
resp.ErrCode = respPb.ErrCode
|
||||
resp.ErrMsg = respPb.ErrMsg
|
||||
resp.Data.FailedList = respPb.FailedList
|
||||
resp.Data.SuccessList = respPb.SuccessList
|
||||
resp.Data = respPb.Result
|
||||
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp)
|
||||
c.JSON(http.StatusOK, resp)
|
||||
|
||||
@ -152,8 +151,6 @@ func AddMessageReactionExtensions(c *gin.Context) {
|
||||
}
|
||||
resp.ErrCode = respPb.ErrCode
|
||||
resp.ErrMsg = respPb.ErrMsg
|
||||
resp.Data.FailedList = respPb.FailedList
|
||||
resp.Data.SuccessList = respPb.SuccessList
|
||||
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), resp)
|
||||
c.JSON(http.StatusOK, resp)
|
||||
}
|
||||
|
@ -68,10 +68,7 @@ type ModifyMessageReactionExtensionsReq struct {
|
||||
|
||||
type ModifyMessageReactionExtensionsResp struct {
|
||||
CommResp
|
||||
Data struct {
|
||||
SuccessList []*msg.ExtendMsgResp `json:"successList,omitempty"`
|
||||
FailedList []*msg.ExtendMsgResp `json:"failedList,omitempty"`
|
||||
} `json:"data"`
|
||||
Data []*msg.KeyValueResp `json:"data"`
|
||||
}
|
||||
|
||||
type OperateMessageListReactionExtensionsReq struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user