import { request } from '@umijs/max';

// 查询菜单权限列表
export async function protocolPage(body) {
    return request('/api/protocol/page', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
        data: body || {},
    });
}

export async function protocolAdd(body) {
    return request('/api/protocol/add', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
        data: body || {},
    });
}

export async function protocolUpdate(body) {
    return request('/api/protocol/update', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
        data: body || {},
    });
}

export async function protocolDelete(body) {
    return request('/api/protocol/deleteBatchByIds', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
        data: body || {},
    });
}

export async function protocolInfo(params) {
    return request('/api/protocol/detail', {
        method: 'GET',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
        params
    });
}


