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//! | [`legacy_time`] | DB TIMESTAMP(UTC) ↔ API UTC 直通 |
15//! | [`shanghai_time`] | UTC+8 时间工具(RSS 等) |
16//! | [`rss_labels`] | RSS 文案/标签生成 |
17//! | [`query_deserialize`] | Query 参数反序列化辅助宏 |
18//! | [`error_log`] | 统一错误日志记录 |
19//! | [`agent_debug`] | NDJSON Agent 调试日志 |
20
21pub mod agent_debug;
22pub mod archive_extract;
23pub mod context;
24pub mod cos_cdn;
25pub mod cos_presign;
26pub mod cos_sts;
27pub mod error_log;
28pub mod fast_json;
29pub mod jwt;
30pub mod legacy_time;
31pub mod page;
32pub mod query_deserialize;
33pub mod rss_labels;
34pub mod shanghai_time;
35
36pub use context::MemberContext;
37pub use jwt::JwtUtil;
38pub use page::paginate;