From cd0cbacf18398b0c22ced9fd99b11d84f5c323d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 3 Oct 2026 14:58:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=90=8E=E5=8F=B0=E4=BC=9A=E5=91=98):?= =?UTF-8?q?=20=E6=94=B6=E7=AA=84=E8=AE=A2=E5=8D=95=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=AD=97=E9=9D=A2=E9=87=8F=E8=81=94?= =?UTF-8?q?=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - adminApiTypes.ts:AdminMembershipOrderChangePayload.changeKind 去掉多余的 string 分支,非法取值改由编译期暴露 Co-authored-by: Junie --- apps/admin-web/src/api/adminApiTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/admin-web/src/api/adminApiTypes.ts b/apps/admin-web/src/api/adminApiTypes.ts index 4e263d322..2444b9ad2 100644 --- a/apps/admin-web/src/api/adminApiTypes.ts +++ b/apps/admin-web/src/api/adminApiTypes.ts @@ -975,7 +975,7 @@ export interface AdminRechargeRefundHoldPayload { export interface AdminMembershipOrderChangePayload { /** `purchase`(新购)或 `upgrade`(补差升级)。 */ - changeKind: 'purchase' | 'upgrade' | string; + changeKind: 'purchase' | 'upgrade'; planBefore?: ProfileMembershipPlan | null; planAfter?: ProfileMembershipPlan | null; cycleKindBefore?: ProfileMembershipCycleKind | null;