import * as Types from './types';

export default {
  [Types.FETCH_AUTHOR_INFO_REQUEST](state) {
    state.fetchAuthorInfo = true;
  },
  [Types.FETCH_AUTHOR_INFO_FAILD](state) {
    state.fetchAuthorInfo = false;
  },
  [Types.FETCH_AUTHOR_INFO_SUCCESS](state, {data}) {
    state.fetchAuthorInfo = false;
  },
};