text: import { queryBasicApplyDetail, queryAdvancedApplyDetail } from '../services/api';
  
  export default {
    namespace: 'system',
  
    state: {
      basicGoods: [],
      advancedOperation1: [],
      advancedOperation2: [],
      advancedOperation3: [],
    },
  
    effects: {
      *fetchBasic(_, { call, put }) {
        const response = yield call(queryBasicApplyDetail);
        yield put({
          type: 'show',
          payload: response,
        });
      },
      *fetchAdvanced(_, { call, put }) {
        const response = yield call(queryAdvancedApplyDetail);
        yield put({
          type: 'show',
          payload: response,
        });
      },
    },
  
    reducers: {
      show(state, { payload }) {
        return {
          ...state,
          ...payload,
        };
      },
    },
  };
  