mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
encryption
This commit is contained in:
parent
16b3ea8b7e
commit
a9b60b8052
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user