FeatureLibraryRebuildApi.js 1.13 KB
import axiosInstance from "@/Request/PublicAxiosInstance"
import {filterEmptyValueInObject} from "@/PublicUtil/PublicUtil"

class FeatureLibraryRebuildApi {
    getStaffResult(data) {
        return axiosInstance.request(
            {
                method: 'POST',
                url: `/mall/staffPool`,
                data: data
            }
        )
    }

    getCustomResult(data) {
        return axiosInstance.request(
            {
                method: 'POST',
                url: `/mall/customPool`,
                data: data
            }
        )
    }
    getPersonResult(data) {
        return axiosInstance.request(
            {
                method: 'POST',
                url: `/person/rePool`,
                data: data
            }
        )
    }
    getLibraryList(data){
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/person/pools`,
                params: filterEmptyValueInObject(
                    data
                )
            }
        )
    }
}

const featureLibraryRebuildApi = new FeatureLibraryRebuildApi()

export default featureLibraryRebuildApi