contentInitialState.js 1.13 KB
'use strict';

import Immutable, {Record, List, Map} from 'immutable';

let InitialState = Record({
    contentListId: 0,
    contentCategoryName: '',
    contentTipFlag: 3,

    tipMessage: '',

    pageSize: 20,

    //内容消息类型
    contentType: new (Record({
        isFetching: false,
        list: List(),
        error:null,
    })),

    //main页面消息
    commentList: new (Record({
        isFetching: false,
        list: List(),
        currentPage: 0,
        endReached: false,
        isPullToRefresh: false,
        error:null,
        shouldShowEmpty: false,
        pageCount: 0,
    })),
    //列表页面
    contentList: new (Record({
        isFetching: false,
        list: List(),
        currentPage: 0,
        endReached: false,
        isPullToRefresh: false,
        error:null,
        shouldShowEmpty: false,
        pageCount: 0,
    })),

    addCommentContent: new (Record({
        isFetching: false,
        error: null,
    })),
    updateAttentionContent: new (Record({
        isFetching: false,
        error: null,
    })),

    isShowToast: false,
    toastMessage: '',

});

export default InitialState;