Skip to content

Commit c853dc9

Browse files
committed
增加注释
1 parent 86c084d commit c853dc9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/common/redux/GSYState.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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数据
1212
class 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
2323
GSYState 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
}

0 commit comments

Comments
 (0)