This commit is contained in:
wangchuxiao 2023-03-09 15:47:00 +08:00
parent 2be3c9b0ad
commit 5447f27c80

View File

@ -1,7 +1,6 @@
package relation package relation
import ( import (
"gorm.io/gorm"
"time" "time"
pbMsg "OpenIM/pkg/proto/msg" pbMsg "OpenIM/pkg/proto/msg"
@ -27,7 +26,6 @@ type ChatLogModel struct {
SendTime time.Time `gorm:"column:send_time;index:sendTime;index:content_type,priority:1;index:session_type,priority:1;index:recv_id,priority:1;index:send_id,priority:1" json:"sendTime"` SendTime time.Time `gorm:"column:send_time;index:sendTime;index:content_type,priority:1;index:session_type,priority:1;index:recv_id,priority:1;index:send_id,priority:1" json:"sendTime"`
CreateTime time.Time `gorm:"column:create_time" json:"createTime"` CreateTime time.Time `gorm:"column:create_time" json:"createTime"`
Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"`
DB *gorm.DB
} }
func (ChatLogModel) TableName() string { func (ChatLogModel) TableName() string {