A:全局Common的公共定义

This commit is contained in:
jimmy committed 2025-05-26 22:56:51 +08:00
1 parent 83b7ca5971
commit eaaedd48cf
18 files changed
+366 -1

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
| 类别 | 示例 |
| -------- | --------------------------------------------- |
| ✅ 配置封装 | `AppConfig`, `ConfigReader` |
| ✅ 通用工具类 | 字符串处理、加密、哈希、路径处理 |
| ✅ 基础模型类 | `Result<T>`, `PagedList<T>`, `ErrorInfo` |
| ✅ 日志适配器 | 封装 `Serilog`、`NLog` 的通用调用接口 |
| ✅ 通用扩展方法 | `string.ToSafeInt()`, `DateTime.ToUnixTime()` |
| ✅ 接口定义 | 如 `INetworkMonitor`, `ILogger`(便于依赖注入) |
| ✅ 网络协议模型 | 公共 API 的数据结构定义(DTO/VO) |
| ✅ 常量/枚举 | 错误码、状态码、常量定义 |