0.11.1: 旗舰版完善(资源权限等级/个人环境变量/收藏/企业报表/租户概览/ARM64发布/多渠道接入)

- 迁移 000035-000037(权限等级/环境变量/渠道)
- 新增 internal/channel 渠道抽象层(webhook/企微/钉钉/飞书)
- 全部功能端到端验证通过(25 包单测)
This commit is contained in:
2026-08-13 11:54:34 +08:00
parent c22669c31d
commit 4563979a15
25 changed files with 1664 additions and 7 deletions
+17
View File
@@ -0,0 +1,17 @@
-- 渠道管理:统一企业微信/钉钉/飞书/通用 Webhook 渠道,入站消息经绑定
-- 模型应答后按平台协议回复。
CREATE TABLE IF NOT EXISTS gateway.channels (
id uuid PRIMARY KEY,
code text NOT NULL UNIQUE,
name text NOT NULL,
kind text NOT NULL CHECK (kind IN ('webhook', 'wecom', 'dingtalk', 'feishu')),
encrypted_config bytea NOT NULL DEFAULT '',
config_kek_version int NOT NULL DEFAULT 1,
encrypted_api_key bytea NOT NULL DEFAULT '',
api_key_kek_version int NOT NULL DEFAULT 1,
model_binding jsonb NOT NULL DEFAULT '{}',
enabled boolean NOT NULL DEFAULT true,
created_by uuid,
created_at timestamptz NOT NULL DEFAULT clock_timestamp(),
updated_at timestamptz NOT NULL DEFAULT clock_timestamp()
);