JsTestModel
model一些说明描述内容,比如这个model是做什么的...
- JsTestModel
- .namespace
- .state :
Object - .effects :
Object- .andleLoadTeamInfo(state, value) :
Object - .handleUpdateTeamExt() :
Object - .handleLocShareStatusChange(state, value) :
Object
- .andleLoadTeamInfo(state, value) :
- .reducers :
Object
JsTestModel.namespace
命名空间
Kind: static property of JsTestModel
Value: JsTestModel
JsTestModel.state : Object
初始数据,本地的state数据 可以通过 store.getState().namesapce 来获得当前 state
Kind: static property of JsTestModel
JsTestModel.effects : Object
biz 业务逻辑处理层 方法中包含 3 个参数 dispatch 可以继续派发动作 getState 可以获取数据 action dispatch派发的数据
Kind: static property of JsTestModel
- .effects :
Object- .andleLoadTeamInfo(state, value) :
Object - .handleUpdateTeamExt() :
Object - .handleLocShareStatusChange(state, value) :
Object
- .andleLoadTeamInfo(state, value) :
effects.andleLoadTeamInfo(state, value) : Object
*andleLoadTeamInfo(
Kind: static method of effects
| Param | Type |
|---|---|
| state | Object |
| value | any |
effects.handleUpdateTeamExt() : Object
*handleUpdateTeamExt
Kind: static method of effects
effects.handleLocShareStatusChange(state, value) : Object
*handleLocShareStatusChange
Kind: static method of effects
| Param | Type |
|---|---|
| state | Object |
| value | any |
JsTestModel.reducers : Object
reducers 用来改变 state, 是纯函数. 相同的输入必得相同的输出, 例如 +new Date() 就不可以在 reducer 中
Kind: static property of JsTestModel
- .reducers :
Object
reducers.updateTeamInfo(state, value)
更新群信息
Kind: static method of reducers
| Param | Type |
|---|---|
| state | Object |
| value | any |
reducers.updateTeamExt(state, value)
更新群扩展信息
Kind: static method of reducers
| Param | Type |
|---|---|
| state | Object |
| value | any |
reducers.updateUserInfo(state, teamInfo)
更新个人信息
Kind: static method of reducers
| Param | Type |
|---|---|
| state | Object |
| teamInfo | Object |