api.js 1.42 KB
import axiosInstance from "@/Request/PublicAxiosInstance"
import {filterEmptyValueInObject} from "@/PublicUtil/PublicUtil"
class ComparisonResultApi {
    getPersonGroupList(data) {
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/personGroup`,
                params: filterEmptyValueInObject(
                    data
                )
            }
        )
    }
    // 人员列表详情
    getPersonsDetailList(data) {
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/persons`,
                params: filterEmptyValueInObject(
                    data
                )
            }
        )
    }
    // 店员特征对比
    getStaffContrastList(data) {
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/staffContrast`,
                params: filterEmptyValueInObject(
                    data
                )
            }
        )
    }
    // 特征对比
    getPersonContrastList(data) {
        return axiosInstance.request(
            {
                method: 'POST',
                url: `/feature/personContrast`,
                data: filterEmptyValueInObject(
                    data
                )
            }
        )
    }
}

const comparsionResultApi = new ComparisonResultApi()

export default comparsionResultApi