feat(datasource): add WeCom document integration and callback setup
- Implemented WeCom document connector to sync smart documents and WeDrive files into WeKnora. - Added detailed documentation for WeCom integration, including setup instructions for callback URL and API access. - Enhanced frontend localization to support WeCom-specific messages and instructions. - Updated data source management UI to include WeCom configuration options and callback URL handling. - Improved error handling and validation for WeCom API interactions.
This commit is contained in:
@@ -52,6 +52,7 @@ import (
|
||||
"github.com/Tencent/WeKnora/internal/database"
|
||||
"github.com/Tencent/WeKnora/internal/datasource"
|
||||
feishuConnector "github.com/Tencent/WeKnora/internal/datasource/connector/feishu"
|
||||
wecomConnector "github.com/Tencent/WeKnora/internal/datasource/connector/wecom"
|
||||
"github.com/Tencent/WeKnora/internal/event"
|
||||
"github.com/Tencent/WeKnora/internal/handler"
|
||||
"github.com/Tencent/WeKnora/internal/handler/session"
|
||||
@@ -257,6 +258,7 @@ func BuildContainer(container *dig.Container) *dig.Container {
|
||||
|
||||
// Data source handler
|
||||
must(container.Provide(handler.NewDataSourceHandler))
|
||||
must(container.Provide(handler.NewWecomCallbackHandler))
|
||||
|
||||
// IM integration
|
||||
logger.Debugf(ctx, "[Container] Registering IM integration...")
|
||||
@@ -1281,6 +1283,9 @@ func initConnectorRegistry() *datasource.ConnectorRegistry {
|
||||
// Register Feishu connector
|
||||
_ = registry.Register(feishuConnector.NewConnector())
|
||||
|
||||
// Register WeCom document connector
|
||||
_ = registry.Register(wecomConnector.NewConnector())
|
||||
|
||||
// Future connectors will be registered here:
|
||||
// _ = registry.Register(notionConnector.NewConnector())
|
||||
// _ = registry.Register(confluenceConnector.NewConnector())
|
||||
|
||||
Reference in New Issue
Block a user