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

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