{"size": 598, "ext": "js", "max_stars_repo_path": "src/pages/V1/Public/VIP/models/VIP.js", "max_stars_repo_name": "wumin520/anana-01", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/pages/V1/Public/VIP/models/VIP.js", "max_issues_repo_name": "wumin520/anana-01", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/pages/V1/Public/VIP/models/VIP.js", "max_forks_repo_name": "wumin520/anana-01", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.1621621622, "max_line_length": 50, "alphanum_fraction": 0.4347826087}
import { memberList } from '@/services/api';

export default {
  namespace: 'VIP',

  state: {
    memberListData: [
      {
        price: '',
      },
    ],
  },

  effects: {
    *getMemberList({ payload }, { call, put }) {
      const res = yield call(memberList, payload);
      if (res && res.code === 200) {
        yield put({
          type: 'saveData',
          payload: {
            memberListData: res.payload,
          },
        });
      }
    },
  },

  reducers: {
    saveData(state, { payload }) {
      return {
        ...state,
        ...payload,
      };
    },
  },
};
