diff --git a/pkg/common/db/mysql_model/im_mysql_model/user_model.go b/pkg/common/db/mysql_model/im_mysql_model/user_model.go index 1d494afae..21d68d003 100644 --- a/pkg/common/db/mysql_model/im_mysql_model/user_model.go +++ b/pkg/common/db/mysql_model/im_mysql_model/user_model.go @@ -5,9 +5,21 @@ import ( "Open_IM/pkg/utils" "errors" "fmt" + "gorm.io/gorm" "time" ) +var ( + BlackListDB *gorm.DB + UserDB *gorm.DB +) + +type BlackList struct { + UserId string `gorm:"column:uid"` + BeginDisableTime time.Time `gorm:"column:begin_disable_time"` + EndDisableTime time.Time `gorm:"column:end_disable_time"` +} + func UserRegister(user User) error { user.CreateTime = time.Now() if user.AppMangerLevel == 0 {