|
|
@ -19,7 +19,7 @@ func SetMessageReactionExtensions(c *gin.Context) {
|
|
|
|
var (
|
|
|
|
var (
|
|
|
|
req api.SetMessageReactionExtensionsCallbackReq
|
|
|
|
req api.SetMessageReactionExtensionsCallbackReq
|
|
|
|
resp api.SetMessageReactionExtensionsCallbackResp
|
|
|
|
resp api.SetMessageReactionExtensionsCallbackResp
|
|
|
|
reqPb rpc.ModifyMessageReactionExtensionsReq
|
|
|
|
reqPb rpc.SetMessageReactionExtensionsReq
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if err := c.BindJSON(&req); err != nil {
|
|
|
|
if err := c.BindJSON(&req); err != nil {
|
|
|
@ -57,8 +57,7 @@ func SetMessageReactionExtensions(c *gin.Context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
resp.ErrCode = respPb.ErrCode
|
|
|
|
resp.ErrCode = respPb.ErrCode
|
|
|
|
resp.ErrMsg = respPb.ErrMsg
|
|
|
|
resp.ErrMsg = respPb.ErrMsg
|
|
|
|
resp.Data.FailedList = respPb.FailedList
|
|
|
|
resp.Data = respPb.Result
|
|
|
|
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 +151,6 @@ func AddMessageReactionExtensions(c *gin.Context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
resp.ErrCode = respPb.ErrCode
|
|
|
|
resp.ErrCode = respPb.ErrCode
|
|
|
|
resp.ErrMsg = respPb.ErrMsg
|
|
|
|
resp.ErrMsg = respPb.ErrMsg
|
|
|
|
resp.Data.FailedList = respPb.FailedList
|
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|