feat(mobile): track mobile app scaffold
This commit is contained in:
11
mobile/app/src/shared/README.md
Normal file
11
mobile/app/src/shared/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Shared Layer
|
||||
|
||||
共享层承载跨 feature 的稳定能力:
|
||||
|
||||
- `api`:接口 client、OpenAPI 生成类型、请求错误映射。
|
||||
- `auth`:登录态、SecureStore、后端模拟身份请求头。
|
||||
- `components`:可复用展示组件和触控组件。
|
||||
- `domain`:报销状态、审批阶段、权限判断和 view model 映射。
|
||||
- `mock`:初始化阶段的本地演示数据,接入后端后逐步替换。
|
||||
|
||||
业务状态判断优先放在 `domain`,避免 Web 和 mobile 对同一状态出现不同解释。
|
||||
Reference in New Issue
Block a user