创建聊天组
This commit is contained in:
@@ -10,6 +10,11 @@ const (
|
||||
MessageStatusSendAllSuccess = 1
|
||||
MessageStatusSendSuccess = 2
|
||||
MessageStatusSendAllFailed = 3
|
||||
|
||||
GroupTypeSingle = 1 //单聊
|
||||
GroupTypeMulit = 2 //群聊
|
||||
|
||||
GroupMemberTypeNormal = 1 //普通群员
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -69,6 +74,7 @@ func (*ImMessageRecord) TableIndex() [][]string {
|
||||
type MessageGroup struct {
|
||||
ModelIDCULD
|
||||
|
||||
GroupID int `orm:"column(group_id)" json:"groupID"` //组ID
|
||||
UserID string `orm:"size(48);column(user_id)" json:"userID"` //创建组的userID
|
||||
Name string `json:"name"` //组名
|
||||
Type int `json:"type"` //组类型,1为单聊,2为群聊
|
||||
|
||||
Reference in New Issue
Block a user