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

W
cms  
wangchuxiao 已提交
3 4 5 6 7 8 9 10 11
type CommonMessage struct {
	ChatType       int    `json:"chat_type"`
	MessageType    int    `json:"message_type"`
	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 已提交
12 13
type SearchMessageByUserResponse struct {
	MessageList []struct {
W
cms  
wangchuxiao 已提交
14
		CommonMessage
W
pb api  
wangchuxiao 已提交
15 16 17 18 19 20 21 22
		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 已提交
23
		CommonMessage
W
pb api  
wangchuxiao 已提交
24 25 26
		Date           string `json:"date"`
	} `json:"massage_list"`
}