2021-12-28 15:33:47 +08:00
|
|
|
package base_info
|
2021-12-29 11:31:51 +08:00
|
|
|
|
2021-12-29 15:52:19 +08:00
|
|
|
type OptResult struct {
|
|
|
|
|
ConversationID string `json:"conversationID"`
|
|
|
|
|
Result *int32 `json:"result"`
|
|
|
|
|
}
|
2021-12-29 11:31:51 +08:00
|
|
|
type GetAllConversationMessageOptReq struct {
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
FromUserID string `json:"fromUserID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
type GetAllConversationMessageOptResp struct {
|
|
|
|
|
CommResp
|
2021-12-29 15:52:19 +08:00
|
|
|
ConversationOptResultList []*OptResult `json:"data"`
|
2021-12-29 11:31:51 +08:00
|
|
|
}
|
|
|
|
|
type GetReceiveMessageOptReq struct {
|
2021-12-29 15:53:56 +08:00
|
|
|
ConversationIDList []string `json:"conversationIDList" binding:"required"`
|
2021-12-29 11:31:51 +08:00
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
FromUserID string `json:"fromUserID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
type GetReceiveMessageOptResp struct {
|
|
|
|
|
CommResp
|
2021-12-29 15:52:19 +08:00
|
|
|
ConversationOptResultList []*OptResult `json:"data"`
|
2021-12-29 11:31:51 +08:00
|
|
|
}
|
|
|
|
|
type SetReceiveMessageOptReq struct {
|
2021-12-29 16:04:08 +08:00
|
|
|
FromUserID string `json:"fromUserID" binding:"required"`
|
2021-12-29 11:31:51 +08:00
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
Opt *int32 `json:"opt" binding:"required"`
|
2021-12-29 15:53:56 +08:00
|
|
|
ConversationIDList []string `json:"conversationIDList" binding:"required"`
|
2021-12-29 11:31:51 +08:00
|
|
|
}
|
|
|
|
|
type SetReceiveMessageOptResp struct {
|
|
|
|
|
CommResp
|
2021-12-29 15:52:19 +08:00
|
|
|
ConversationOptResultList []*OptResult `json:"data"`
|
2021-12-29 11:31:51 +08:00
|
|
|
}
|
2022-02-21 15:01:06 +08:00
|
|
|
|
2022-03-11 17:37:01 +08:00
|
|
|
type Conversation struct {
|
|
|
|
|
OwnerUserID string `json:"ownerUserID" binding:"required"`
|
2022-03-31 14:50:02 +08:00
|
|
|
ConversationID string `json:"conversationID" binding:"required"`
|
|
|
|
|
ConversationType int32 `json:"conversationType" binding:"required"`
|
2022-03-11 17:37:01 +08:00
|
|
|
UserID string `json:"userID"`
|
|
|
|
|
GroupID string `json:"groupID"`
|
2022-03-16 18:02:26 +08:00
|
|
|
RecvMsgOpt int32 `json:"recvMsgOpt" binding:"omitempty,oneof=0 1 2"`
|
|
|
|
|
UnreadCount int32 `json:"unreadCount" binding:"omitempty"`
|
2022-03-11 17:37:01 +08:00
|
|
|
DraftTextTime int64 `json:"draftTextTime"`
|
2022-03-16 18:02:26 +08:00
|
|
|
IsPinned bool `json:"isPinned" binding:"omitempty"`
|
2022-03-11 17:37:01 +08:00
|
|
|
IsPrivateChat bool `json:"isPrivateChat"`
|
|
|
|
|
AttachedInfo string `json:"attachedInfo"`
|
|
|
|
|
Ex string `json:"ex"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SetConversationReq struct {
|
|
|
|
|
Conversation
|
2022-03-31 14:50:02 +08:00
|
|
|
NotificationType int32 `json:"notificationType"`
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
2022-03-11 17:37:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SetConversationResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type BatchSetConversationsReq struct {
|
2022-03-31 14:50:02 +08:00
|
|
|
Conversations []Conversation `json:"conversations" binding:"required"`
|
|
|
|
|
NotificationType int32 `json:"notificationType"`
|
|
|
|
|
OwnerUserID string `json:"ownerUserID" binding:"required"`
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
2022-03-11 17:37:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type BatchSetConversationsResp struct {
|
|
|
|
|
CommResp
|
2022-03-16 18:02:26 +08:00
|
|
|
Data struct {
|
2022-03-11 17:37:01 +08:00
|
|
|
Success []string `json:"success"`
|
|
|
|
|
Failed []string `json:"failed"`
|
|
|
|
|
} `json:"data"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetConversationReq struct {
|
|
|
|
|
ConversationID string `json:"conversationID" binding:"required"`
|
|
|
|
|
OwnerUserID string `json:"ownerUserID" binding:"required"`
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
}
|
2022-02-21 15:01:06 +08:00
|
|
|
|
2022-03-11 17:37:01 +08:00
|
|
|
type GetConversationResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
Conversation Conversation `json:"data"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetAllConversationsReq struct {
|
|
|
|
|
OwnerUserID string `json:"ownerUserID" binding:"required"`
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetAllConversationsResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
Conversations []Conversation `json:"data"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetConversationsReq struct {
|
|
|
|
|
ConversationIDs []string `json:"conversationIDs" binding:"required"`
|
2022-03-16 18:02:26 +08:00
|
|
|
OwnerUserID string `json:"ownerUserID" binding:"required"`
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
2022-03-11 17:37:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetConversationsResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
Conversations []Conversation `json:"data"`
|
2022-03-16 18:02:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SetRecvMsgOptReq struct {
|
2022-03-31 14:50:02 +08:00
|
|
|
OwnerUserID string `json:"ownerUserID" binding:"required"`
|
|
|
|
|
ConversationID string `json:"conversationID"`
|
|
|
|
|
RecvMsgOpt int32 `json:"recvMsgOpt" binding:"omitempty,oneof=0 1 2"`
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
NotificationType int32 `json:"notificationType"`
|
2022-03-16 18:02:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SetRecvMsgOptResp struct {
|
|
|
|
|
CommResp
|
|
|
|
|
}
|