JKBaseLib/README.md

32 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

com.xxx.xxx.xxx.app
├── core/ # 核心基础模块
│ ├── constants/ # 常量如路由、API地址等
│ ├── enums/ # 枚举类
│ ├── extensions/ # Kotlin扩展函数
│ ├── utils/ # 工具类(可分日期、文件、屏幕工具等子包)
│ └── di/ # 核心依赖注入
├── network/ # 网络通信模块
│ ├── api/ # 后端接口定义(按业务线分文件)
│ ├── model/ # 网络实体类
│ ├── interceptor/ # 拦截器Token刷新、日志等
│ └── retrofit/ # Retrofit配置
├── feature_home/ # 首页功能模块(示例)
│ ├── ui/ # 表现层
│ │ ├── HomeActivity.kt
│ │ ├── HomeFragment.kt
│ │ └── HomeViewModel.kt
│ │
│ ├── domain/ # 领域层(可选)
│ └── data/ # 数据层(模块专属仓库)
├── feature_auth/ # 认证模块(示例)
│ ├── ui/
│ ├── domain/
│ └── data/
└── shared/ # 共享模块
├── components/ # 公共UI组件Dialog、自定义View等
├── model/ # 跨模块共享的领域模型
└── resources/ # 公共资源(如字符串常量)