import { HcApi } from '../request/index'
import website from '~src/config/index'

export const getRoutes = (form, msg = true) => HcApi({
    url: '/api/blade-system/menu/routes',
    method: 'get',
    params: {
        ...form,
        sysType: website.clientId,
    },
}, msg)

export const getButtons = (msg = true) => HcApi({
    url: '/api/blade-system/menu/buttons',
    method: 'get',
}, msg)

export const getAazyList = (form, msg = true) => HcApi({
    url: '/api/blade-system/menu/lazy-list',
    method: 'get',
    params: form,
}, msg)
