|
|
@ -3,7 +3,7 @@ package im_mysql_model
|
|
|
|
import "Open_IM/pkg/common/db"
|
|
|
|
import "Open_IM/pkg/common/db"
|
|
|
|
|
|
|
|
|
|
|
|
func SetClientInitConfig(m map[string]interface{}) error {
|
|
|
|
func SetClientInitConfig(m map[string]interface{}) error {
|
|
|
|
result := db.DB.MysqlDB.DefaultGormDB().Model(&db.ClientInitConfig{}).Updates(m)
|
|
|
|
result := db.DB.MysqlDB.DefaultGormDB().Model(&db.ClientInitConfig{}).Where("1=1").Updates(m)
|
|
|
|
if result.Error != nil {
|
|
|
|
if result.Error != nil {
|
|
|
|
return result.Error
|
|
|
|
return result.Error
|
|
|
|
}
|
|
|
|
}
|
|
|
|