2023-02-09 16:11:18 +08:00
|
|
|
package apistruct
|
2022-03-16 20:37:37 +08:00
|
|
|
|
2022-12-09 12:13:14 +08:00
|
|
|
import (
|
2023-02-23 19:15:30 +08:00
|
|
|
"OpenIM/pkg/proto/msg"
|
|
|
|
|
sdkws "OpenIM/pkg/proto/sdkws"
|
2022-12-09 12:13:14 +08:00
|
|
|
)
|
|
|
|
|
|
2022-03-16 20:37:37 +08:00
|
|
|
type DelMsgReq struct {
|
2022-06-29 11:18:19 +08:00
|
|
|
UserID string `json:"userID,omitempty" binding:"required"`
|
|
|
|
|
SeqList []uint32 `json:"seqList,omitempty" binding:"required"`
|
|
|
|
|
OperationID string `json:"operationID,omitempty" binding:"required"`
|
2022-03-16 20:37:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DelMsgResp struct {
|
2022-03-17 19:00:05 +08:00
|
|
|
CommResp
|
2022-03-16 20:37:37 +08:00
|
|
|
}
|
2022-05-31 19:16:29 +08:00
|
|
|
|
|
|
|
|
type CleanUpMsgReq struct {
|
|
|
|
|
UserID string `json:"userID" binding:"required"`
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CleanUpMsgResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
}
|
2022-12-09 12:13:14 +08:00
|
|
|
|
2022-07-12 16:16:04 +08:00
|
|
|
type DelSuperGroupMsgReq struct {
|
2022-09-28 17:29:08 +08:00
|
|
|
UserID string `json:"userID" binding:"required"`
|
|
|
|
|
GroupID string `json:"groupID" binding:"required"`
|
2022-07-12 16:16:04 +08:00
|
|
|
SeqList []uint32 `json:"seqList,omitempty"`
|
|
|
|
|
IsAllDelete bool `json:"isAllDelete"`
|
2022-09-28 17:29:08 +08:00
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
2022-07-12 16:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DelSuperGroupMsgResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
}
|
2022-12-09 12:13:14 +08:00
|
|
|
|
2022-07-12 16:16:04 +08:00
|
|
|
type MsgDeleteNotificationElem struct {
|
|
|
|
|
GroupID string `json:"groupID"`
|
|
|
|
|
IsAllDelete bool `json:"isAllDelete"`
|
|
|
|
|
SeqList []uint32 `json:"seqList"`
|
|
|
|
|
}
|
2022-07-20 20:59:52 +08:00
|
|
|
|
|
|
|
|
type SetMsgMinSeqReq struct {
|
|
|
|
|
UserID string `json:"userID" binding:"required"`
|
|
|
|
|
GroupID string `json:"groupID"`
|
|
|
|
|
MinSeq uint32 `json:"minSeq" binding:"required"`
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
}
|
2022-12-09 12:13:14 +08:00
|
|
|
|
2022-07-20 20:59:52 +08:00
|
|
|
type SetMsgMinSeqResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
}
|
2022-12-09 12:13:14 +08:00
|
|
|
|
|
|
|
|
type ModifyMessageReactionExtensionsReq struct {
|
2023-02-09 20:36:34 +08:00
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
SourceID string `json:"sourceID" binding:"required"`
|
|
|
|
|
SessionType int32 `json:"sessionType" binding:"required"`
|
|
|
|
|
ReactionExtensionList map[string]*sdkws.KeyValue `json:"reactionExtensionList,omitempty" binding:"required"`
|
|
|
|
|
ClientMsgID string `json:"clientMsgID" binding:"required"`
|
|
|
|
|
Ex *string `json:"ex"`
|
|
|
|
|
AttachedInfo *string `json:"attachedInfo"`
|
|
|
|
|
IsReact bool `json:"isReact"`
|
|
|
|
|
IsExternalExtensions bool `json:"isExternalExtensions"`
|
|
|
|
|
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
|
2022-12-09 12:13:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ModifyMessageReactionExtensionsResp struct {
|
|
|
|
|
CommResp
|
2022-12-12 16:52:36 +08:00
|
|
|
Data struct {
|
|
|
|
|
ResultKeyValue []*msg.KeyValueResp `json:"result"`
|
|
|
|
|
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
|
|
|
|
|
IsReact bool `json:"isReact"`
|
|
|
|
|
} `json:"data"`
|
2022-12-09 12:13:14 +08:00
|
|
|
}
|
|
|
|
|
|
2023-03-03 19:02:09 +08:00
|
|
|
//type OperateMessageListReactionExtensionsReq struct {
|
|
|
|
|
// OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
// SourceID string `json:"sourceID" binding:"required"`
|
|
|
|
|
// SessionType string `json:"sessionType" binding:"required"`
|
|
|
|
|
// MessageReactionKeyList []*msg.GetMessageListReactionExtensionsReq_MessageReactionKey `json:"messageReactionKeyList" binding:"required"`
|
|
|
|
|
//}
|
2022-12-09 12:13:14 +08:00
|
|
|
|
|
|
|
|
type OperateMessageListReactionExtensionsResp struct {
|
|
|
|
|
CommResp
|
2022-12-09 12:18:38 +08:00
|
|
|
Data struct {
|
2022-12-09 18:03:40 +08:00
|
|
|
SuccessList []*msg.ExtendMsgResp `json:"successList"`
|
|
|
|
|
FailedList []*msg.ExtendMsgResp `json:"failedList"`
|
2022-12-09 12:18:38 +08:00
|
|
|
} `json:"data"`
|
2022-12-09 12:13:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SetMessageReactionExtensionsCallbackReq ModifyMessageReactionExtensionsReq
|
|
|
|
|
|
|
|
|
|
type SetMessageReactionExtensionsCallbackResp ModifyMessageReactionExtensionsResp
|
|
|
|
|
|
2023-03-03 19:02:09 +08:00
|
|
|
//type GetMessageListReactionExtensionsReq OperateMessageListReactionExtensionsReq
|
2022-12-09 12:13:14 +08:00
|
|
|
|
2022-12-12 19:15:31 +08:00
|
|
|
type GetMessageListReactionExtensionsResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
Data []*msg.SingleMessageExtensionResult `json:"data"`
|
|
|
|
|
}
|
2022-12-09 12:13:14 +08:00
|
|
|
|
|
|
|
|
type AddMessageReactionExtensionsReq ModifyMessageReactionExtensionsReq
|
|
|
|
|
|
|
|
|
|
type AddMessageReactionExtensionsResp ModifyMessageReactionExtensionsResp
|
|
|
|
|
|
2022-12-12 19:53:04 +08:00
|
|
|
type DeleteMessageReactionExtensionsReq struct {
|
2023-02-09 20:36:34 +08:00
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
SourceID string `json:"sourceID" binding:"required"`
|
|
|
|
|
SessionType int32 `json:"sessionType" binding:"required"`
|
|
|
|
|
ClientMsgID string `json:"clientMsgID" binding:"required"`
|
|
|
|
|
IsExternalExtensions bool `json:"isExternalExtensions"`
|
|
|
|
|
MsgFirstModifyTime int64 `json:"msgFirstModifyTime" binding:"required"`
|
|
|
|
|
ReactionExtensionList []*sdkws.KeyValue `json:"reactionExtensionList" binding:"required"`
|
2022-12-12 19:53:04 +08:00
|
|
|
}
|
2022-12-09 12:13:14 +08:00
|
|
|
|
2022-12-12 19:53:04 +08:00
|
|
|
type DeleteMessageReactionExtensionsResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
Data []*msg.KeyValueResp
|
|
|
|
|
}
|
2022-12-12 17:36:12 +08:00
|
|
|
|
|
|
|
|
type ReactionMessageModifierNotification struct {
|
2023-03-06 16:23:16 +08:00
|
|
|
SourceID string `json:"sourceID" binding:"required"`
|
|
|
|
|
OpUserID string `json:"opUserID" binding:"required"`
|
|
|
|
|
SessionType int32 `json:"sessionType" binding:"required"`
|
|
|
|
|
SuccessReactionExtensions map[string]*sdkws.KeyValue `json:"reactionExtensionList,omitempty" binding:"required"`
|
|
|
|
|
ClientMsgID string `json:"clientMsgID" binding:"required"`
|
|
|
|
|
IsReact bool `json:"isReact"`
|
|
|
|
|
IsExternalExtensions bool `json:"isExternalExtensions"`
|
|
|
|
|
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
|
2022-12-12 17:36:12 +08:00
|
|
|
}
|
2022-12-12 19:22:50 +08:00
|
|
|
|
|
|
|
|
type ReactionMessageDeleteNotification struct {
|
2023-03-06 16:23:16 +08:00
|
|
|
SourceID string `json:"sourceID" binding:"required"`
|
|
|
|
|
OpUserID string `json:"opUserID" binding:"required"`
|
|
|
|
|
SessionType int32 `json:"sessionType" binding:"required"`
|
|
|
|
|
SuccessReactionExtensions map[string]*sdkws.KeyValue `json:"reactionExtensionList,omitempty" binding:"required"`
|
|
|
|
|
ClientMsgID string `json:"clientMsgID" binding:"required"`
|
|
|
|
|
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
|
2022-12-12 19:22:50 +08:00
|
|
|
}
|