Skip to content

Commit d3a7db3

Browse files
committed
fix: update JSON field names to camelCase in conversation structs
1 parent 1135840 commit d3a7db3

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

pkg/callbackstruct/conversation.go

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@ package callbackstruct
22

33
type CallbackBeforeCreateSingleChatConversationsReq struct {
44
CallbackCommand `json:"callbackCommand"`
5-
OwnerUserID string `json:"owner_user_id"`
6-
ConversationID string `json:"conversation_id"`
7-
ConversationType int32 `json:"conversation_type"`
8-
UserID string `json:"user_id"`
9-
RecvMsgOpt int32 `json:"recv_msg_opt"`
10-
IsPinned bool `json:"is_pinned"`
11-
IsPrivateChat bool `json:"is_private_chat"`
12-
BurnDuration int32 `json:"burn_duration"`
13-
GroupAtType int32 `json:"group_at_type"`
14-
AttachedInfo string `json:"attached_info"`
5+
OwnerUserID string `json:"ownerUserId"`
6+
ConversationID string `json:"conversationId"`
7+
ConversationType int32 `json:"conversationType"`
8+
UserID string `json:"userId"`
9+
RecvMsgOpt int32 `json:"recvMsgOpt"`
10+
IsPinned bool `json:"isPinned"`
11+
IsPrivateChat bool `json:"isPrivateChat"`
12+
BurnDuration int32 `json:"burnDuration"`
13+
GroupAtType int32 `json:"groupAtType"`
14+
AttachedInfo string `json:"attachedInfo"`
1515
Ex string `json:"ex"`
1616
}
1717

1818
type CallbackBeforeCreateSingleChatConversationsResp struct {
1919
CommonCallbackResp
20-
RecvMsgOpt *int32 `json:"recv_msg_opt"`
21-
IsPinned *bool `json:"is_pinned"`
22-
IsPrivateChat *bool `json:"is_private_chat"`
23-
BurnDuration *int32 `json:"burn_duration"`
24-
GroupAtType *int32 `json:"group_at_type"`
25-
AttachedInfo *string `json:"attached_info"`
20+
RecvMsgOpt *int32 `json:"recvMsgOpt"`
21+
IsPinned *bool `json:"isPinned"`
22+
IsPrivateChat *bool `json:"isPrivateChat"`
23+
BurnDuration *int32 `json:"burnDuration"`
24+
GroupAtType *int32 `json:"groupAtType"`
25+
AttachedInfo *string `json:"attachedInfo"`
2626
Ex *string `json:"ex"`
2727
}
2828

2929
type CallbackAfterCreateSingleChatConversationsReq struct {
3030
CallbackCommand `json:"callbackCommand"`
31-
OwnerUserID string `json:"owner_user_id"`
32-
ConversationID string `json:"conversation_id"`
33-
ConversationType int32 `json:"conversation_type"`
34-
UserID string `json:"user_id"`
35-
RecvMsgOpt int32 `json:"recv_msg_opt"`
36-
IsPinned bool `json:"is_pinned"`
37-
IsPrivateChat bool `json:"is_private_chat"`
38-
BurnDuration int32 `json:"burn_duration"`
39-
GroupAtType int32 `json:"group_at_type"`
40-
AttachedInfo string `json:"attached_info"`
31+
OwnerUserID string `json:"ownerUserId"`
32+
ConversationID string `json:"conversationId"`
33+
ConversationType int32 `json:"conversationType"`
34+
UserID string `json:"userId"`
35+
RecvMsgOpt int32 `json:"recvMsgOpt"`
36+
IsPinned bool `json:"isPinned"`
37+
IsPrivateChat bool `json:"isPrivateChat"`
38+
BurnDuration int32 `json:"burnDuration"`
39+
GroupAtType int32 `json:"groupAtType"`
40+
AttachedInfo string `json:"attachedInfo"`
4141
Ex string `json:"ex"`
4242
}
4343

@@ -47,42 +47,42 @@ type CallbackAfterCreateSingleChatConversationsResp struct {
4747

4848
type CallbackBeforeCreateGroupChatConversationsReq struct {
4949
CallbackCommand `json:"callbackCommand"`
50-
OwnerUserID string `json:"owner_user_id"`
51-
ConversationID string `json:"conversation_id"`
52-
ConversationType int32 `json:"conversation_type"`
53-
GroupID string `json:"group_id"`
54-
RecvMsgOpt int32 `json:"recv_msg_opt"`
55-
IsPinned bool `json:"is_pinned"`
56-
IsPrivateChat bool `json:"is_private_chat"`
57-
BurnDuration int32 `json:"burn_duration"`
58-
GroupAtType int32 `json:"group_at_type"`
59-
AttachedInfo string `json:"attached_info"`
50+
OwnerUserID string `json:"ownerUserId"`
51+
ConversationID string `json:"conversationId"`
52+
ConversationType int32 `json:"conversationType"`
53+
GroupID string `json:"groupId"`
54+
RecvMsgOpt int32 `json:"recvMsgOpt"`
55+
IsPinned bool `json:"isPinned"`
56+
IsPrivateChat bool `json:"isPrivateChat"`
57+
BurnDuration int32 `json:"burnDuration"`
58+
GroupAtType int32 `json:"groupAtType"`
59+
AttachedInfo string `json:"attachedInfo"`
6060
Ex string `json:"ex"`
6161
}
6262

6363
type CallbackBeforeCreateGroupChatConversationsResp struct {
6464
CommonCallbackResp
65-
RecvMsgOpt *int32 `json:"recv_msg_opt"`
66-
IsPinned *bool `json:"is_pinned"`
67-
IsPrivateChat *bool `json:"is_private_chat"`
68-
BurnDuration *int32 `json:"burn_duration"`
69-
GroupAtType *int32 `json:"group_at_type"`
70-
AttachedInfo *string `json:"attached_info"`
65+
RecvMsgOpt *int32 `json:"recvMsgOpt"`
66+
IsPinned *bool `json:"isPinned"`
67+
IsPrivateChat *bool `json:"isPrivateChat"`
68+
BurnDuration *int32 `json:"burnDuration"`
69+
GroupAtType *int32 `json:"groupAtType"`
70+
AttachedInfo *string `json:"attachedInfo"`
7171
Ex *string `json:"ex"`
7272
}
7373

7474
type CallbackAfterCreateGroupChatConversationsReq struct {
7575
CallbackCommand `json:"callbackCommand"`
76-
OwnerUserID string `json:"owner_user_id"`
77-
ConversationID string `json:"conversation_id"`
78-
ConversationType int32 `json:"conversation_type"`
79-
GroupID string `json:"group_id"`
80-
RecvMsgOpt int32 `json:"recv_msg_opt"`
81-
IsPinned bool `json:"is_pinned"`
82-
IsPrivateChat bool `json:"is_private_chat"`
83-
BurnDuration int32 `json:"burn_duration"`
84-
GroupAtType int32 `json:"group_at_type"`
85-
AttachedInfo string `json:"attached_info"`
76+
OwnerUserID string `json:"ownerUserId"`
77+
ConversationID string `json:"conversationId"`
78+
ConversationType int32 `json:"conversationType"`
79+
GroupID string `json:"groupId"`
80+
RecvMsgOpt int32 `json:"recvMsgOpt"`
81+
IsPinned bool `json:"isPinned"`
82+
IsPrivateChat bool `json:"isPrivateChat"`
83+
BurnDuration int32 `json:"burnDuration"`
84+
GroupAtType int32 `json:"groupAtType"`
85+
AttachedInfo string `json:"attachedInfo"`
8686
Ex string `json:"ex"`
8787
}
8888

0 commit comments

Comments
 (0)