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

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