FeatureMatchingAccuracyApi.js 3.11 KB
import axiosInstance from "@/Request/PublicAxiosInstance"
import {filterEmptyValueInObject} from "@/PublicUtil/PublicUtil"

class FeatureMatchingAccuracy {
    addMatch(data) {
        return axiosInstance.request(
            {
                method: 'POST',
                url: `/feature/match`,
                data: data
            }
        )
    }
    getMatchOne(data) {
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/match/${data.id}`,
            }
        )
    }
    editMatch(data) {
        return axiosInstance.request(
            {
                method: 'PUT',
                url: `/feature/match`,
                data: data
            }
        )
    }
    delMatch(data){
        return axiosInstance.request(
            {
                method: 'DELETE',
                url: `/feature/match/${data.id}`,
            }
        )
    }
    getMatch(data) {
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/match`,
                params: data
            }
        )
    }
    getSearchByPic(data){
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/match/searchByPic`,
                params: data
            }
        )
    }
    addMatchHit(data) {
        return axiosInstance.request(
            {
                method: 'POST',
                url: `/feature/match/hit`,
                data: data
            }
        )
    }
    delMatchHit(data){
        return axiosInstance.request(
            {
                method: 'DELETE',
                url: `/feature/match/hit/${data.regId}/${data.faceUnid}`,
            }
        )
    }
    getMatchHitDetail(data){
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/match/hitDetail/${data.id}`,
                params: data
            }
        )
    }
    getfeatureReport(data){
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/match/report`,
                params: data
            }
        )
    }
    getMatchHit(data){
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/match/${data.id}/${data.personUnid}`,
            }
        )
    }
    GetmatchPrecision(data){
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/feature/match/precision/${data.regId}/${data.personUnid}`,
            }
        )
    }
    delMatchSample(data){
        return axiosInstance.request(
            {
                method: 'DELETE',
                url: `/feature/match/${data.regId}/${data.faceUnid}`,
            }
        )
    }
    addMatchReg(data){
        return axiosInstance.request(
            {
                method: 'POST',
                url: `/feature/match/reg`,
                data: data
            }
        )
    }
    
}

const FeatureMatchingAccuracyApi = new FeatureMatchingAccuracy()

export default FeatureMatchingAccuracyApi