文档(会员契约): 澄清 status 兜底只作用于 Rust 客户端

- ProfileMembershipResponse.status 注释改为“Rust 反序列化未知取值按 active 兜底,TS 侧不归一化”
- 同步重新生成 ts-rs 绑定,避免 Web 消费方误以为前端也会 fail-open
This commit is contained in:
2026-10-05 17:53:23 +08:00
parent 8009a70bb1
commit 759bcf98a8
2 changed files with 2 additions and 2 deletions
@@ -558,7 +558,7 @@ pub struct ProfileMembershipPlanResponse {
)
)]
pub struct ProfileMembershipResponse {
/// 会员状态 token:`normal` / `active`;未知取值按 `active` 兜底。
/// 会员状态 token:`normal` / `active`;Rust 客户端反序列化时未知取值按 `active` 兜底,TS 侧不做运行期归一化。
#[serde(deserialize_with = "deserialize_forward_compat_membership_status")]
pub status: ProfileMembershipStatusToken,
/// 当前档位 token;非会员与已到期都是 `normal`;未知取值按 `max` 兜底。