Files
open-im-server/pkg/cms_api_struct/message.go
T

34 lines
820 B
Go
Raw Normal View History

2022-01-21 18:39:57 +08:00
package cms_api_struct
2022-02-07 08:44:21 +08:00
type BroadcastRequest struct {
Message string `json:"message"`
}
type BroadcastResponse struct {
}
2022-01-25 19:18:04 +08:00
type CommonMessage struct {
2022-02-07 08:44:21 +08:00
SessionType int `json:"session_type"`
ContentType int `json:"content_type"`
2022-01-25 19:18:04 +08:00
SenderNickName string `json:"sender_nick_name"`
SenderId int `json:"sender_id"`
SearchContent string `json:"search_content"`
WholeContent string `json:"whole_content"`
}
2022-01-21 18:39:57 +08:00
type SearchMessageByUserResponse struct {
MessageList []struct {
2022-01-25 19:18:04 +08:00
CommonMessage
2022-01-21 18:39:57 +08:00
ReceiverNickName string `json:"receiver_nick_name"`
ReceiverID int `json:"receiver_id"`
Date string `json:"date"`
} `json:"massage_list"`
}
type SearchMessageByGroupResponse struct {
MessageList []struct {
2022-01-25 19:18:04 +08:00
CommonMessage
2022-02-07 08:44:21 +08:00
Date string `json:"date"`
2022-01-21 18:39:57 +08:00
} `json:"massage_list"`
}