refactor: 改为单包结构,库和命令行放在 src

This commit is contained in:
2026-11-19 11:47:25 +08:00
parent b948f7a5d3
commit c932e8d318
15 changed files with 19 additions and 45 deletions
+18
View File
@@ -0,0 +1,18 @@
//! 打卡核心库。界面可以直接调用这里的配置、登录、记录和统计,不必经过命令行。
mod analyze;
mod auth;
mod config;
mod error;
mod iepms;
mod msa;
mod record;
mod report;
pub use analyze::{daily_summaries, last_week, DayStatus, DaySummary, SUPPLEMENT_WINDOW_DAYS};
pub use auth::{login, LoginSession};
pub use config::{AppConfig, DeviceProfile};
pub use error::{Error, Result};
pub use iepms::IepmsClient;
pub use record::PunchRecord;
pub use report::{load_last_week, WeekReport};