import HttpService from "@/utils/HttpService";

export const dynamicTableUrl = (params, config = {}) => HttpService.page("/dynamic-table-demo.json", params, Object.assign({ encrypt: false }, config));

export const treeTableUrl = (params, config = { loading: false }) => HttpService.page("/tree-table-demo.json", params, Object.assign({ encrypt: false }, config));

export const constantsUrl = (params) => HttpService.page("/constants.json", params, Object.assign({ encrypt: false }, {}));

export const selectRemoteUrl = (params, config = { loading: false }) => HttpService.page("/select-remote-page.json", params, Object.assign({ encrypt: false }, config || {}));

export default {
  dynamicTableUrl: dynamicTableUrl,
  treeTableUrl: treeTableUrl,
  constantsUrl: constantsUrl,
  selectRemoteUrl: selectRemoteUrl
}