Skip to main content

tdm_server_rust/utils/
mod.rs

1//! 工具模块 (Utilities)
2//!
3//! 提供全项目共用的工具函数和类型:
4//!
5//! | 子模块 | 说明 |
6//! |--------|------|
7//! | [`jwt`] | JWT Token 生成与解析 |
8//! | [`context`] | 请求上下文(当前登录组员) |
9//! | [`page`] | 内存分页辅助 |
10//! | [`fast_json`] | simd-json 高性能序列化 |
11//! | [`cos_sts`] | 腾讯云 COS STS 临时凭证 |
12//! | [`cos_presign`] | COS 预签名 URL 生成 |
13//! | [`cos_cdn`] | CDN 鉴权 URL 生成 |
14//! | [`shanghai_time`] | UTC+8 时间工具 |
15//! | [`rss_labels`] | RSS 文案/标签生成 |
16//! | [`query_deserialize`] | Query 参数反序列化辅助宏 |
17//! | [`error_log`] | 统一错误日志记录 |
18//! | [`agent_debug`] | NDJSON Agent 调试日志 |
19
20pub mod agent_debug;
21pub mod context;
22pub mod cos_cdn;
23pub mod cos_presign;
24pub mod cos_sts;
25pub mod error_log;
26pub mod fast_json;
27pub mod jwt;
28pub mod page;
29pub mod query_deserialize;
30pub mod rss_labels;
31pub mod shanghai_time;
32
33pub use context::MemberContext;
34pub use jwt::JwtUtil;
35pub use page::paginate;