Documentation ¶
Index ¶
Constants ¶
View Source
const ( OWNER = 1 ADMAIN = 2 SPEAKER = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetMyGroupResp ¶
type Group ¶
type Group struct { GroupId int64 `gorm:"primarykey"` // 群组id OwnerId int64 Name string // 组名 Introduction string // 群简介 UserNum int32 // 群组人数 CreateTime time.Time // 创建时间 UpdateTime time.Time // 更新时间 MaxSeq int64 }
Group 群组
type GroupMessageInput ¶
type GroupMessageOutput ¶
type GroupMessageOutput struct { UserId int64 `json:"user_id"` // 接受者user_id GroupId int64 `json:"group_id"` // 群组id Data string `json:"data"` SenderId int64 `json:"sender_id"` // 发送者账户id Seq int64 `json:"seq"` // 该条消息的正确seq ReplyTo int64 `json:"reply_to"` Type int64 `json:"type"` Time time.Time `json:"time"` }
type GroupMessageSyncInput ¶
type GroupMessageSyncOutput ¶
type GroupMessageSyncOutput struct { UserId int64 `json:"user_id"` // 接受者user_id GroupId int64 `json:"group_id"` // 群组id Data []GroupMessageOutput `json:"data"` MaxSeq int64 `json:"max_seq"` // 该群组最新Seq }
type UserJoinGroupInput ¶
type UserJoinGroupOutput ¶
Click to show internal directories.
Click to hide internal directories.