34 lines
772 B
Go
34 lines
772 B
Go
package Netease
|
|
|
|
type ImResponse struct {
|
|
Code int `json:"code"`
|
|
Desc interface{} `json:"desc"`
|
|
}
|
|
|
|
// 获取聊天室在线列表返回对象
|
|
type GetChatroomMemberResponse struct {
|
|
Data []ChatroomMemberDTO `json:"data"`
|
|
}
|
|
|
|
// 聊天室会员
|
|
type ChatroomMemberDTO struct {
|
|
RoomId int `json:"roomid"`
|
|
AccId string `json:"accid"`
|
|
OnlineStat bool `json:"onlineStat"`
|
|
}
|
|
|
|
// 创建聊天室返回结果
|
|
type CreateChatroomResponse struct {
|
|
Code int `json:"code"`
|
|
Chatroom NeteaseChatroomDTO `json:"chatroom"`
|
|
}
|
|
|
|
// 聊天室会员
|
|
type NeteaseChatroomDTO struct {
|
|
RoomId int `json:"roomid"`
|
|
Valid bool `json:"valid"`
|
|
RoomName string `json:"name"`
|
|
Ext string `json:"ext"`
|
|
Creator string `json:"creator"`
|
|
}
|