You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
3.8 KiB
118 lines
3.8 KiB
2 years ago
|
package base_info
|
||
|
|
||
|
type OptResult struct {
|
||
|
ConversationID string `json:"conversationID"`
|
||
|
Result *int32 `json:"result"`
|
||
|
}
|
||
|
type GetAllConversationMessageOptReq struct {
|
||
|
OperationID string `json:"operationID" binding:"required"`
|
||
|
FromUserID string `json:"fromUserID" binding:"required"`
|
||
|
}
|
||
|
type GetAllConversationMessageOptResp struct {
|
||
|
CommResp
|
||
|
ConversationOptResultList []*OptResult `json:"data"`
|
||
|
}
|
||
|
type GetReceiveMessageOptReq struct {
|
||
|
ConversationIDList []string `json:"conversationIDList" binding:"required"`
|
||
|
OperationID string `json:"operationID" binding:"required"`
|
||
|
FromUserID string `json:"fromUserID" binding:"required"`
|
||
|
}
|
||
|
type GetReceiveMessageOptResp struct {
|
||
|
CommResp
|
||
|
ConversationOptResultList []*OptResult `json:"data"`
|
||
|
}
|
||
|
type SetReceiveMessageOptReq struct {
|
||
|
FromUserID string `json:"fromUserID" binding:"required"`
|
||
|
OperationID string `json:"operationID" binding:"required"`
|
||
|
Opt *int32 `json:"opt" binding:"required"`
|
||
|
ConversationIDList []string `json:"conversationIDList" binding:"required"`
|
||
|
}
|
||
|
type SetReceiveMessageOptResp struct {
|
||
|
CommResp
|
||
|
ConversationOptResultList []*OptResult `json:"data"`
|
||
|
}
|
||
|
|
||
|
type Conversation struct {
|
||
|
OwnerUserID string `json:"ownerUserID" binding:"required"`
|
||
|
ConversationID string `json:"conversationID" binding:"required"`
|
||
|
ConversationType int32 `json:"conversationType" binding:"required"`
|
||
|
UserID string `json:"userID"`
|
||
|
GroupID string `json:"groupID"`
|
||
|
RecvMsgOpt int32 `json:"recvMsgOpt" binding:"omitempty,oneof=0 1 2"`
|
||
|
UnreadCount int32 `json:"unreadCount" binding:"omitempty"`
|
||
|
DraftTextTime int64 `json:"draftTextTime"`
|
||
|
IsPinned bool `json:"isPinned" binding:"omitempty"`
|
||
|
IsPrivateChat bool `json:"isPrivateChat"`
|
||
|
AttachedInfo string `json:"attachedInfo"`
|
||
|
Ex string `json:"ex"`
|
||
|
}
|
||
|
|
||
|
type SetConversationReq struct {
|
||
|
Conversation
|
||
|
NotificationType int32 `json:"notificationType"`
|
||
|
OperationID string `json:"operationID" binding:"required"`
|
||
|
}
|
||
|
|
||
|
type SetConversationResp struct {
|
||
|
CommResp
|
||
|
}
|
||
|
|
||
|
type BatchSetConversationsReq struct {
|
||
|
Conversations []Conversation `json:"conversations" binding:"required"`
|
||
|
NotificationType int32 `json:"notificationType"`
|
||
|
OwnerUserID string `json:"ownerUserID" binding:"required"`
|
||
|
OperationID string `json:"operationID" binding:"required"`
|
||
|
}
|
||
|
|
||
|
type BatchSetConversationsResp struct {
|
||
|
CommResp
|
||
|
Data struct {
|
||
|
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"`
|
||
|
}
|
||
|
|
||
|
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"`
|
||
|
OwnerUserID string `json:"ownerUserID" binding:"required"`
|
||
|
OperationID string `json:"operationID" binding:"required"`
|
||
|
}
|
||
|
|
||
|
type GetConversationsResp struct {
|
||
|
CommResp
|
||
|
Conversations []Conversation `json:"data"`
|
||
|
}
|
||
|
|
||
|
type SetRecvMsgOptReq struct {
|
||
|
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"`
|
||
|
}
|
||
|
|
||
|
type SetRecvMsgOptResp struct {
|
||
|
CommResp
|
||
|
}
|