import request from '@/utils/request';

/**
 * 查询巡检班组列表
 * @param query
 * @returns {*}
 */
export const listInspectionTeam = (query) => {
    return request({
        url: '/jdyw/inspectionTeam/list',
        method: 'get',
        params: query
    });
};
/**
 * 查询巡检班组信息详细
 * @param id
 */
export const getInspectionTeam = (id) => {
    return request({
        url: '/jdyw/inspectionTeam/' + id,
        method: 'get'
    });
};

/**
 * 新增巡检班组信息
 * @param data
 */
export const addInspectionTeam = (data) => {
    return request({
        url: '/jdyw/inspectionTeam',
        method: 'post',
        data: data
    });
};

/**
 * 修改巡检班组信息
 * @param data
 */
export const updateInspectionTeam = (data) => {
    return request({
        url: '/jdyw/inspectionTeam',
        method: 'put',
        data: data
    });
};

/**
 * 删除巡检班组信息
 * @param id
 */
export const delInspectionTeam = (id: string | number | Array<string | number>) => {
    return request({
        url: '/jdyw/inspectionTeam/' + id,
        method: 'delete'
    });
};
