mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-18 15:59:01 +08:00
office
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
package unrelation
|
||||
@@ -0,0 +1 @@
|
||||
package unrelation
|
||||
Reference in New Issue
Block a user