message.go 820 字节
Newer Older
W
pb api  
wangchuxiao 已提交
1 2
package cms_api_struct

W
wangchuxiao 已提交
3 4 5 6 7 8 9
type BroadcastRequest struct {
	Message string `json:"message"`
}

type BroadcastResponse struct {
}

W
cms  
wangchuxiao 已提交
10
type CommonMessage struct {
W
wangchuxiao 已提交
11 12
	SessionType    int    `json:"session_type"`
	ContentType    int    `json:"content_type"`
W
cms  
wangchuxiao 已提交
13 14 15 16 17 18
	SenderNickName string `json:"sender_nick_name"`
	SenderId       int    `json:"sender_id"`
	SearchContent  string `json:"search_content"`
	WholeContent   string `json:"whole_content"`
}

W
pb api  
wangchuxiao 已提交
19 20
type SearchMessageByUserResponse struct {
	MessageList []struct {
W
cms  
wangchuxiao 已提交
21
		CommonMessage
W
pb api  
wangchuxiao 已提交
22 23 24 25 26 27 28 29
		ReceiverNickName string `json:"receiver_nick_name"`
		ReceiverID       int    `json:"receiver_id"`
		Date             string `json:"date"`
	} `json:"massage_list"`
}

type SearchMessageByGroupResponse struct {
	MessageList []struct {
W
cms  
wangchuxiao 已提交
30
		CommonMessage
W
wangchuxiao 已提交
31
		Date string `json:"date"`
W
pb api  
wangchuxiao 已提交
32 33
	} `json:"massage_list"`
}