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

export default {
    //分页
    async page(form) {
        return HcApi({
            url: '/api/blade-resource/attach/list',
            method: 'get',
            params: form,
        })
    },
    //详情
    async detail(id) {
        return HcApi({
            url: '/api/blade-resource/attach/detail',
            method: 'get',
            params: { id },
        })
    },
    //新增和编辑
    async submit(form) {
        return HcApi({
            url: '/api/blade-resource/attach/submit',
            method: 'post',
            data: form,
        })
    },
    //删除
    async del(ids) {
        return HcApi({
            url: '/api/blade-resource/attach/remove',
            method: 'post',
            params: { ids },
        })
    },
}
