File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8,21 +8,23 @@ import 'package:gsy_github_app_flutter/common/redux/EventRedux.dart';
88 * Created by guoshuyu
99 * Date: 2018-07-16
1010 */
11-
11+ ///全局Redux store 的对象,保存State数据
1212class GSYState {
13-
13+ ///用户信息
1414 User userInfo;
15-
15+ ///用户接受到的事件列表
1616 List <Event > eventList = new List ();
17-
17+ ///构造方法
1818 GSYState ({this .userInfo, this .eventList});
1919
2020}
2121
22-
22+ ///通过 Reducer 创建 store 保存的 GSYState
2323GSYState appReducer (GSYState state, action) {
2424 return GSYState (
25+ ///通过 UserReducer 将 GSYState 内的 userInfo 和 action 关联在一起
2526 userInfo: UserReducer (state.userInfo, action),
27+ ///通过 EventReducer 将 GSYState 内的 eventList 和 action 关联在一起
2628 eventList: EventReducer (state.eventList, action),
2729 );
2830}
You can’t perform that action at this time.
0 commit comments