text: import { getRegistration } from '@/services/api';
  
  export default {
    namespace: 'registration',
  
    state: {
      list: [],
    },
  
    effects: {
      *gets({ payload }, { call, put }) {
        const response = yield call(getRegistration, payload);
        yield put({
          type: 'queryList',
          payload: Array.isArray(response) ? response : [],
        });
      },
    },
  
    reducers: {
      queryList(state, action) {
        return {
          ...state,
          list: action.payload,
        };
      },
    },
  };
  