diff --git a/server-rs/crates/module-runtime/src/lib.rs b/server-rs/crates/module-runtime/src/lib.rs index ce5c04494..614e9695a 100644 --- a/server-rs/crates/module-runtime/src/lib.rs +++ b/server-rs/crates/module-runtime/src/lib.rs @@ -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;