first commit
This commit is contained in:
33
pkg/common/netease/ImResponse.go
Normal file
33
pkg/common/netease/ImResponse.go
Normal file
@ -0,0 +1,33 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user