This commit is contained in:
suyl
2021-07-12 16:27:33 +08:00
parent 60277b42d4
commit 5e493288f0
3 changed files with 10 additions and 211 deletions

View File

@@ -59,17 +59,16 @@ func (*MessageStatus) TableIndex() [][]string {
type ImMessageRecord struct {
ModelIDCULD
UserID string `orm:"size(48);column(user_id)" json:"userID"` //发消息的userID
GroupID int `orm:"column(group_id)" json:"groupID"` //组ID
Content string `orm:"type(text)" json:"content"` //消息内容
MessageType int `json:"messageType"` //消息类型1文字2图片,3音频
Seq int64 `json:"seq"`
Weight int `json:"weight"`
Height int `json:"height"`
AudioLength string `json:"audioLength"`
Key string `orm:"-" json:"key"`
ToUserID string `orm:"size(48);column(to_user_id)" json:"toUserID"` //收消息的userID
UserInfo *GetUserResult `orm:"-" json:"userInfo"`
UserID string `orm:"size(48);column(user_id)" json:"userID"` //发消息的userID
GroupID int `orm:"column(group_id)" json:"groupID"` //组ID
Content string `orm:"type(text)" json:"content"` //消息内容
MessageType int `json:"messageType"` //消息类型1文字2图片,3音频
Seq int64 `json:"seq"`
Weight int `json:"weight"`
Height int `json:"height"`
AudioLength string `json:"audioLength"`
Key string `orm:"-" json:"key"`
ToUserID string `orm:"size(48);column(to_user_id)" json:"toUserID"` //收消息的userID
}
func (*ImMessageRecord) TableIndex() [][]string {