From c3e5ea13dacdce8c0f5552ffbaa29fa85e16e47c Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Mon, 27 Apr 2026 09:25:15 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=20#1454=20changelog=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B7=AF=E5=BE=84=20=E2=80=94=20/admin/insur?= =?UTF-8?q?ance/scheme/list=3FtotalDays?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前误写成 /admin/insurance/schemes/active?tripDays, 实际路径 /scheme/list, 参数 totalDays. 经测试服 curl 实证修正. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../27_refactor_insurance-scheme_full-trip-totaldays.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelogs/2026-04/27_refactor_insurance-scheme_full-trip-totaldays.md b/changelogs/2026-04/27_refactor_insurance-scheme_full-trip-totaldays.md index 6b7dc83..61ad108 100644 --- a/changelogs/2026-04/27_refactor_insurance-scheme_full-trip-totaldays.md +++ b/changelogs/2026-04/27_refactor_insurance-scheme_full-trip-totaldays.md @@ -19,11 +19,11 @@ ### 接口字段语义变化 -**`GET /admin/insurance/schemes/active?tripDays=N`** +**`GET /admin/insurance/scheme/list?totalDays=N`**(启用方案下拉,按行程天数筛选) - 之前: 只返回 `totalDays == N` 的方案 - 现在: 返回 `totalDays == N` 或 `totalDays == -1`(全程方案)的方案 -**`POST /admin/insurance/schemes` / `PUT /admin/insurance/schemes/{id}`** +**`POST /admin/insurance/scheme` / `PUT /admin/insurance/scheme/{id}`** - request body 行为不变(前端继续配 `dayOffsetEnd: -1` 表示全程段) - response body 中的 `totalDays` 字段语义变化: - 之前: 全程方案返回 `1`(错误语义)