package model // ServiceMessageLog 留言数据日志模型 type ServiceMessageLog struct { Model UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户ID" json:"-"` MessageID uint64 `gorm:"column:message_id;type:int(11);default:0;comment:信息ID" json:"-"` Content string `gorm:"column:content;type:varchar(255);default:'';comment:内容信息" json:"-"` ModelDeleted ModelAt } func (m *ServiceMessageLog) TableName() string { return "service_message_log" } func NewServiceMessageLog() *ServiceMessageLog { return &ServiceMessageLog{} }