import { HcApi } from '../request/index'

//获取更新信息
export const getVersionJson = () => HcApi({
    url: 'version.json?time=' + new Date().getTime(),
    method: 'get',
}, false)

//获取图标文件
export const getRemixicon = () => HcApi({
    url: 'plugins/remixicon/remixicon.css?time=' + new Date().getTime(),
    method: 'get',
}, false)

//获取字典数据
export const getDictionary = (form, msg = true) => HcApi({
    url: '/api/blade-system/dict/dictionary',
    method: 'get',
    params: form,
}, msg)

//获取系统字典数据
export const getBizDictionary = (form, msg = true) => HcApi({
    url: '/api/blade-system/dict-biz/dictionary',
    method: 'get',
    params: form,
}, msg)
