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

export default {
    async page(form) {
        return HcApi({
            url: '/api/blade-system/client/list',
            method: 'get',
            params: form,
        }, false)
    },
    //菜单详情
    async detail(id) {
        return HcApi({
            url: '/api/blade-system/client/detail',
            method: 'get',
            params: {
                id,
            },
        }, false)
    },
    async submit(form) {
        return HcApi({
            url: '/api/blade-system/client/submit',
            method: 'post',
            data: form,
        }, false)
    },
    async del(ids) {
        return HcApi({
            url: '/api/blade-system/client/remove',
            method: 'post',
            params: {
                ids,
            },
        }, false)
    },
}
