This commit is contained in:
withchao
2023-05-31 16:54:11 +08:00
parent e8763f32d0
commit 26c3c30b82
14 changed files with 4959 additions and 14 deletions
+2 -2
View File
@@ -12,8 +12,6 @@ import (
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
_ "embed"
"gopkg.in/yaml.v3"
)
@@ -163,6 +161,7 @@ type config struct {
OpenImCachePort []int `yaml:"openImCachePort"`
OpenImRtcPort []int `yaml:"openImRtcPort"`
OpenImThirdPort []int `yaml:"openImThirdPort"`
OpenImOfficePort []int `yaml:"openImOfficePort"`
}
RpcRegisterName struct {
OpenImUserName string `yaml:"openImUserName"`
@@ -175,6 +174,7 @@ type config struct {
OpenImConversationName string `yaml:"openImConversationName"`
OpenImRtcName string `yaml:"openImRtcName"`
OpenImThirdName string `yaml:"openImThirdName"`
OpenImOfficeName string `yaml:"openImOfficeName"`
}
Zookeeper struct {
Schema string `yaml:"schema"`
+18
View File
@@ -0,0 +1,18 @@
package controller
import (
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/unrelation"
)
func NewOfficeDatabase(mgo *unrelation.Mongo) OfficeDatabase {
return &officeDatabase{mgo: mgo}
}
type OfficeDatabase interface {
// table.unrelation.office.go
// unrelation.office.go
}
type officeDatabase struct {
mgo *unrelation.Mongo
}
+1
View File
@@ -0,0 +1 @@
package unrelation
+1
View File
@@ -0,0 +1 @@
package unrelation