-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
BLoC相关模块划分:
schemas/: 领域模型。主要包括基础类Schema/DomainModel,也许可以报考三类DomainModel,即Entity、ValueObject、Service。providers/: 数据提供者。api: 主要包括ApiService基类、RestApiMixin类(或者实现一个生成它的工具)cache: 网络缓存db/storage/local: 本地存储。区别于上述,是本地的持久化缓存方案。
repositories/: 数据仓库。可能会根据上述provider实现不同的排列组合,比如纯网络应用带缓存、本地同步云端等等。blocs/: BLoC组件,主要包括BLoC类、State类、Event类。views/: 视图组件。根据需要做必要的改造和封装,比如ListView、Form等。一个最终暴露的组件大体可以概括为 View = BLoC + View1 + View2 + ...
Metadata
Metadata
Assignees
Labels
No labels