encryption

This commit is contained in:
skiffer-git 2022-10-19 19:36:49 +08:00
parent 16b3ea8b7e
commit a9b60b8052
3 changed files with 2 additions and 6 deletions

View File

@ -3,7 +3,6 @@ package db
import (
"Open_IM/pkg/common/config"
"fmt"
"sync"
"time"
"gorm.io/driver/mysql"
@ -12,7 +11,7 @@ import (
)
type mysqlDB struct {
sync.RWMutex
//sync.RWMutex
db *gorm.DB
}

View File

@ -17,6 +17,6 @@ func SetClientInitConfig(m map[string]interface{}) error {
func GetClientInitConfig() (db.ClientInitConfig, error) {
var config db.ClientInitConfig
err := db.DB.MysqlDB.DefaultGormDB().Model((&db.ClientInitConfig{})).First(&config).Error
err := db.DB.MysqlDB.DefaultGormDB().Model(&db.ClientInitConfig{}).First(&config).Error
return config, err
}

View File

@ -31,7 +31,6 @@ message UserTokenResp {
}
message ForceLogoutReq {
int32 Platform = 1;
string FromUserID = 2;
@ -56,8 +55,6 @@ message ParseTokenResp{
}
service Auth {
rpc UserRegister(UserRegisterReq) returns(UserRegisterResp);
rpc UserToken(UserTokenReq) returns(UserTokenResp);