创建聊天组

This commit is contained in:
苏尹岚
2020-10-21 11:02:31 +08:00
parent 9c3be6bcc7
commit fe53668185
5 changed files with 81 additions and 65 deletions

View File

@@ -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为群聊