This commit is contained in:
苏尹岚
2020-11-30 11:01:37 +08:00
parent 8eb3ef3488
commit b9c15efec4
4 changed files with 51 additions and 10 deletions

View File

@@ -66,6 +66,7 @@ type ImMessageRecord struct {
Seq int `json:"seq"`
Weight int `json:"weight"`
Height int `json:"height"`
// UnReadFlag int `json:"unReadFlag"` //未读标志为1则此条消息未读
UserInfo *GetUserResult `orm:"-" json:"userInfo"`
}
@@ -110,3 +111,17 @@ func (*MessageGroupMember) TableIndex() [][]string {
[]string{"MemberUserID"},
}
}
type MessageGroupRead struct {
ModelIDCUL
GroupID int `orm:"column(group_id)" json:"groupID"` //组ID
UserID string `orm:"size(48);column(user_id)" json:"userID"` //创建组的userID
UnReadCount int `json:"unReadCount"` //未读数
}
func (*MessageGroupRead) TableIndex() [][]string {
return [][]string{
[]string{"UserID", "GroupID"},
}
}