import { TREAT_CREDIT_DEMAND_PENDING, TREAT_CREDIT_DEMAND_SUCCESS, TREAT_CREDIT_DEMAND_ERROR, TREAT_CREDIT_DEMAND_RESET } from "../types/CreditManageType";

export const fetchTreatCreditDemandPending = () => ({
     type: TREAT_CREDIT_DEMAND_PENDING
});

export const fetchTreatCreditDemandSucsess = (res) => ({
     type: TREAT_CREDIT_DEMAND_SUCCESS,
     result: res,
});

export const fetchTreatCreditDemandError = (error) => ({
     type: TREAT_CREDIT_DEMAND_ERROR,
     result: error
});

export const fetchTreatCreditDemandReset = () => ({
     type: TREAT_CREDIT_DEMAND_RESET
});