重构(计费): module-runtime 去掉通配 re-export 改为策展导出

- lib.rs 移除 pub use civil_calendar::*,公历基元只保留 civil_calendar:: 命名空间

- lib.rs 移除 pub use membership::*,改为只重导出对外的会员契约符号

- 未改动 spacetime-module / spacetime-client / api-server,现有引用保持可用

Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
2026-10-02 19:56:54 +08:00
parent 8e1471d7af
commit f09701f6d4
+19 -7
View File
@@ -1,22 +1,34 @@
pub mod agc_analytics;
mod agc_models;
pub mod civil_calendar;
pub use civil_calendar::*;
mod llm_billing;
pub use llm_billing::*;
mod application;
pub mod membership;
pub use agc_models::*;
mod agc_models;
mod application;
mod commands;
mod domain;
mod errors;
mod events;
mod llm_billing;
pub use agc_models::*;
pub use application::*;
pub use commands::*;
pub use domain::*;
pub use errors::*;
pub use membership::*;
pub use llm_billing::*;
// 中文注释:`membership` 与 `civil_calendar` 不再用 `pub use ...::*` 摊平到 crate 根:
// 通配会把公历基元和目录内部件都变成公开 API,模块继续增长后容易命名冲突;
// 这里只重导出真正对外的会员契约符号,其余留在 `membership::` / `civil_calendar::` 命名空间下。
pub use membership::{
MEMBERSHIP_UNLIMITED_CONCURRENCY, RuntimeProfileMembershipPlanRecord,
RuntimeProfileMembershipPlanSnapshot, RuntimeProfileMembershipUpgradeQuoteInput,
beijing_local_micros, build_runtime_profile_membership_plan_snapshot, is_unlimited_concurrency,
membership_cycle_window, membership_expires_at, parse_runtime_profile_membership_product_id,
quote_runtime_profile_membership_upgrade, resolve_runtime_profile_membership_plan_row,
runtime_profile_membership_plan_catalog, runtime_profile_membership_plan_rank,
runtime_profile_membership_product_id,
};
use shared_kernel::format_rfc3339 as format_shared_rfc3339;
use time::OffsetDateTime;