mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-02 01:12:10 +08:00
fix: update JSON field names to camelCase in conversation structs (#3609)
This commit is contained in:
parent
11358404f9
commit
7d6682ca4b
@ -2,42 +2,42 @@ package callbackstruct
|
|||||||
|
|
||||||
type CallbackBeforeCreateSingleChatConversationsReq struct {
|
type CallbackBeforeCreateSingleChatConversationsReq struct {
|
||||||
CallbackCommand `json:"callbackCommand"`
|
CallbackCommand `json:"callbackCommand"`
|
||||||
OwnerUserID string `json:"owner_user_id"`
|
OwnerUserID string `json:"ownerUserId"`
|
||||||
ConversationID string `json:"conversation_id"`
|
ConversationID string `json:"conversationId"`
|
||||||
ConversationType int32 `json:"conversation_type"`
|
ConversationType int32 `json:"conversationType"`
|
||||||
UserID string `json:"user_id"`
|
UserID string `json:"userId"`
|
||||||
RecvMsgOpt int32 `json:"recv_msg_opt"`
|
RecvMsgOpt int32 `json:"recvMsgOpt"`
|
||||||
IsPinned bool `json:"is_pinned"`
|
IsPinned bool `json:"isPinned"`
|
||||||
IsPrivateChat bool `json:"is_private_chat"`
|
IsPrivateChat bool `json:"isPrivateChat"`
|
||||||
BurnDuration int32 `json:"burn_duration"`
|
BurnDuration int32 `json:"burnDuration"`
|
||||||
GroupAtType int32 `json:"group_at_type"`
|
GroupAtType int32 `json:"groupAtType"`
|
||||||
AttachedInfo string `json:"attached_info"`
|
AttachedInfo string `json:"attachedInfo"`
|
||||||
Ex string `json:"ex"`
|
Ex string `json:"ex"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CallbackBeforeCreateSingleChatConversationsResp struct {
|
type CallbackBeforeCreateSingleChatConversationsResp struct {
|
||||||
CommonCallbackResp
|
CommonCallbackResp
|
||||||
RecvMsgOpt *int32 `json:"recv_msg_opt"`
|
RecvMsgOpt *int32 `json:"recvMsgOpt"`
|
||||||
IsPinned *bool `json:"is_pinned"`
|
IsPinned *bool `json:"isPinned"`
|
||||||
IsPrivateChat *bool `json:"is_private_chat"`
|
IsPrivateChat *bool `json:"isPrivateChat"`
|
||||||
BurnDuration *int32 `json:"burn_duration"`
|
BurnDuration *int32 `json:"burnDuration"`
|
||||||
GroupAtType *int32 `json:"group_at_type"`
|
GroupAtType *int32 `json:"groupAtType"`
|
||||||
AttachedInfo *string `json:"attached_info"`
|
AttachedInfo *string `json:"attachedInfo"`
|
||||||
Ex *string `json:"ex"`
|
Ex *string `json:"ex"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CallbackAfterCreateSingleChatConversationsReq struct {
|
type CallbackAfterCreateSingleChatConversationsReq struct {
|
||||||
CallbackCommand `json:"callbackCommand"`
|
CallbackCommand `json:"callbackCommand"`
|
||||||
OwnerUserID string `json:"owner_user_id"`
|
OwnerUserID string `json:"ownerUserId"`
|
||||||
ConversationID string `json:"conversation_id"`
|
ConversationID string `json:"conversationId"`
|
||||||
ConversationType int32 `json:"conversation_type"`
|
ConversationType int32 `json:"conversationType"`
|
||||||
UserID string `json:"user_id"`
|
UserID string `json:"userId"`
|
||||||
RecvMsgOpt int32 `json:"recv_msg_opt"`
|
RecvMsgOpt int32 `json:"recvMsgOpt"`
|
||||||
IsPinned bool `json:"is_pinned"`
|
IsPinned bool `json:"isPinned"`
|
||||||
IsPrivateChat bool `json:"is_private_chat"`
|
IsPrivateChat bool `json:"isPrivateChat"`
|
||||||
BurnDuration int32 `json:"burn_duration"`
|
BurnDuration int32 `json:"burnDuration"`
|
||||||
GroupAtType int32 `json:"group_at_type"`
|
GroupAtType int32 `json:"groupAtType"`
|
||||||
AttachedInfo string `json:"attached_info"`
|
AttachedInfo string `json:"attachedInfo"`
|
||||||
Ex string `json:"ex"`
|
Ex string `json:"ex"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,42 +47,42 @@ type CallbackAfterCreateSingleChatConversationsResp struct {
|
|||||||
|
|
||||||
type CallbackBeforeCreateGroupChatConversationsReq struct {
|
type CallbackBeforeCreateGroupChatConversationsReq struct {
|
||||||
CallbackCommand `json:"callbackCommand"`
|
CallbackCommand `json:"callbackCommand"`
|
||||||
OwnerUserID string `json:"owner_user_id"`
|
OwnerUserID string `json:"ownerUserId"`
|
||||||
ConversationID string `json:"conversation_id"`
|
ConversationID string `json:"conversationId"`
|
||||||
ConversationType int32 `json:"conversation_type"`
|
ConversationType int32 `json:"conversationType"`
|
||||||
GroupID string `json:"group_id"`
|
GroupID string `json:"groupId"`
|
||||||
RecvMsgOpt int32 `json:"recv_msg_opt"`
|
RecvMsgOpt int32 `json:"recvMsgOpt"`
|
||||||
IsPinned bool `json:"is_pinned"`
|
IsPinned bool `json:"isPinned"`
|
||||||
IsPrivateChat bool `json:"is_private_chat"`
|
IsPrivateChat bool `json:"isPrivateChat"`
|
||||||
BurnDuration int32 `json:"burn_duration"`
|
BurnDuration int32 `json:"burnDuration"`
|
||||||
GroupAtType int32 `json:"group_at_type"`
|
GroupAtType int32 `json:"groupAtType"`
|
||||||
AttachedInfo string `json:"attached_info"`
|
AttachedInfo string `json:"attachedInfo"`
|
||||||
Ex string `json:"ex"`
|
Ex string `json:"ex"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CallbackBeforeCreateGroupChatConversationsResp struct {
|
type CallbackBeforeCreateGroupChatConversationsResp struct {
|
||||||
CommonCallbackResp
|
CommonCallbackResp
|
||||||
RecvMsgOpt *int32 `json:"recv_msg_opt"`
|
RecvMsgOpt *int32 `json:"recvMsgOpt"`
|
||||||
IsPinned *bool `json:"is_pinned"`
|
IsPinned *bool `json:"isPinned"`
|
||||||
IsPrivateChat *bool `json:"is_private_chat"`
|
IsPrivateChat *bool `json:"isPrivateChat"`
|
||||||
BurnDuration *int32 `json:"burn_duration"`
|
BurnDuration *int32 `json:"burnDuration"`
|
||||||
GroupAtType *int32 `json:"group_at_type"`
|
GroupAtType *int32 `json:"groupAtType"`
|
||||||
AttachedInfo *string `json:"attached_info"`
|
AttachedInfo *string `json:"attachedInfo"`
|
||||||
Ex *string `json:"ex"`
|
Ex *string `json:"ex"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CallbackAfterCreateGroupChatConversationsReq struct {
|
type CallbackAfterCreateGroupChatConversationsReq struct {
|
||||||
CallbackCommand `json:"callbackCommand"`
|
CallbackCommand `json:"callbackCommand"`
|
||||||
OwnerUserID string `json:"owner_user_id"`
|
OwnerUserID string `json:"ownerUserId"`
|
||||||
ConversationID string `json:"conversation_id"`
|
ConversationID string `json:"conversationId"`
|
||||||
ConversationType int32 `json:"conversation_type"`
|
ConversationType int32 `json:"conversationType"`
|
||||||
GroupID string `json:"group_id"`
|
GroupID string `json:"groupId"`
|
||||||
RecvMsgOpt int32 `json:"recv_msg_opt"`
|
RecvMsgOpt int32 `json:"recvMsgOpt"`
|
||||||
IsPinned bool `json:"is_pinned"`
|
IsPinned bool `json:"isPinned"`
|
||||||
IsPrivateChat bool `json:"is_private_chat"`
|
IsPrivateChat bool `json:"isPrivateChat"`
|
||||||
BurnDuration int32 `json:"burn_duration"`
|
BurnDuration int32 `json:"burnDuration"`
|
||||||
GroupAtType int32 `json:"group_at_type"`
|
GroupAtType int32 `json:"groupAtType"`
|
||||||
AttachedInfo string `json:"attached_info"`
|
AttachedInfo string `json:"attachedInfo"`
|
||||||
Ex string `json:"ex"`
|
Ex string `json:"ex"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user