export const state = () => ({
  apple: {
    data: {},
    fetching: false
  },
  member: {
    data: {},
    fetching: false
  }
})

export const mutations = {
  REQUEST_APPLY (state) {
    state.apple.fetching = true
  },
  REQUEST_APPLY_SUCCESS (state, result) {
    state.apple.fetching = false
    state.apple.data = result
  },
  REQUEST_APPLY_FAILURE (state) {
    state.apple.fetching = false
  },
  REQUEST_MEMBER (state) {
    state.member.fetching = true
  },
  REQUEST_MEMBER_SUCCESS (state, result) {
    state.member.data = result
    state.member.fetching = false
  },
  REQUEST_MEMBER_FAILURE (state) {
    state.member.fetching = false
  }
}
