ClassInsideClean.js 1.48 KB
import {axiosInstance2} from '@/Request/PublicAxiosInstance'
import {filterEmptyValueInObject, getFormDataByObject} from "@/PublicUtil/PublicUtil"

class ClassInsideCleanApi {
    getClassInsideCleanList(data) {
        return axiosInstance2.request(
            {
                method: 'GET',
                url: '/clean1-person/list',
                params: filterEmptyValueInObject(
                    {
                        packId: data.packId,
                        status: data.status,
                        pageNum: data.pageNum,
                        pageSize: data.pageSize,
                    }
                )
            }
        )
    }

    getCleanInsideResult(data) {
        return axiosInstance2.request(
            {
                method: 'GET',
                url: '/clean1-person/getClean1',
                params: {
                    personId: data.personId,
                    packId: data.packId,
                }
            }
        )
    }

    split(data) {
        return axiosInstance2.request(
            {
                method: 'POST',
                url: '/clean1-person/split',
                data: getFormDataByObject(
                    {
                        personId: data.personId,
                        packId: data.packId,
                        picIds: data.picIds,
                    }
                )
            }
        )
    }
}

const classInsideCleanApi = new ClassInsideCleanApi()

export default classInsideCleanApi