import {
    WeaTools
} from 'ecCom'

export const getHasRight = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/getHasRight', 'GET', params);
}

export const add = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/add', 'POST', params);
}

export const edit = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/edit', 'POST', params);
}

export const deleteRows = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/delete', 'POST', params);
}

export const getSearchCondition = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/getSearchCondition', 'GET', params);
}

export const getSearchList = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/getSearchList', 'GET', params);
}

export const getNeForm = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/getOrgGroupForm?is_multilang_set=true', 'GET', params);
}

export const getAddGpMemForm = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/getOrgRelatedForm?is_multilang_set=true', 'GET', params);
}

export const memberSave = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/addRelated', 'POST', params);
}

export const getMemTableInfo = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/getRelatedSearchList', 'GET', params);
}

export const memTableRowDel = (params) => {
    return WeaTools.callApi('/api/hrm/orggroups/deleteRelated', 'POST', params);
}