const Model: ModelType = { namespace: 'namesps', state: { data: {} }, effects: { *fetch({ payload, callback }, { call, put, select }) { const res = yield call(queryApplyInvoiceInfo, payload); if (!res || !res.data) return; const total = yield select(