import { upcloud_base_common } from "@/config/serviceSettings";

const remote = type => {
  return {
    remoteUrl: {
      url: upcloud_base_common+`/dict/listbytype/?dicttypeCodes=${type}`,
      method: 'post'
    },
    replaceFields: {
      label: 'dictName',
      value: 'dictCode'
    },
    autoLoad: true
  }
}

export { remote}
