feat(api): 统一官方兼容接口响应协议 #24

Merged
easyai merged 2 commits from codex/official-compat-errors into main 2026-07-22 15:38:57 +08:00
Showing only changes of commit e00851d7e6 - Show all commits
@@ -3,8 +3,8 @@ ALTER TABLE gateway_tasks
ADD COLUMN IF NOT EXISTS compatibility_public_id text,
ADD COLUMN IF NOT EXISTS compatibility_source_protocol text,
ADD COLUMN IF NOT EXISTS compatibility_submit_http_status integer,
ADD COLUMN IF NOT EXISTS compatibility_submit_headers jsonb NOT NULL DEFAULT '{}'::jsonb,
ADD COLUMN IF NOT EXISTS compatibility_submit_body jsonb NOT NULL DEFAULT '{}'::jsonb;
ADD COLUMN IF NOT EXISTS compatibility_submit_headers jsonb,
ADD COLUMN IF NOT EXISTS compatibility_submit_body jsonb;
CREATE UNIQUE INDEX IF NOT EXISTS gateway_tasks_compatibility_public_id_unique
ON gateway_tasks (compatibility_protocol, compatibility_public_id)