import webapi from "./webapi";
export function showStateAction(reduce, gf, data) {
  return async (dispatch, getState) => {
    reduce("showState", data);
  };
}
export function getAccountList(reduce, gf, data) {
  return async (dispatch, getState) => {
    const res = await webapi.accountList();
    reduce("accountList", res.items);
  };
}
export function getAccountNum(reduce, gf, data) {
  return async (dispatch, getState) => {
    const res = await webapi.accountData(data);
    reduce("accountNum", res.items);
  };
}
export function getAccountImg(reduce, gf, data) {
  return async (dispatch, getState) => {
    const res = await webapi.accountImg();
    reduce("accountImg", res.items);
  };
}
