import {execFunc} from './customFunction';
import {getAction, deleteAction, putAction, postAction,httpAction,downFile,downloadFile,} from './manage'
import moment from "moment";
import {uuid} from 'vue-uuid'
import ComUtils from './ComUtils'

function handleCreateFunc(func, context) {
  return execFunc(func, context);
}

function handleExecFunc(func, args, callback) {
  // return func(args, getAction, deleteAction, putAction, postAction,httpAction,downFile,downloadFile, moment, store, callback)
  return func(args, getAction, deleteAction, putAction, postAction, httpAction, downFile, downloadFile, moment, uuid, ComUtils, {}, callback)
}

export {handleCreateFunc, handleExecFunc};
