userInitialState.js 695 Bytes
'use strict'

import {Record, List} from 'immutable'

let InitialState = Record({
    isFetching: false,
    error: null,
    userInfo: new (Record({
        avatar: null,
        bgImage: null,
        userName: null,
        sign: null,
    })),
    posts: new (Record({
        jsonData: List(),
        pageCount:1,
        currentPage: 0,
        sum: 0,
    })),   //我的帖子
    praise: new (Record({
        jsonData: List(),
        pageCount:1,
        currentPage: 0,
        sum: 0,
    })) , //我赞过的
    reply: new (Record({
        jsonData: List(),
        pageCount:1,
        currentPage: 0,
        sum: 0,
    })),  //我的回复
});

export default InitialState;