import axios from '@/utils/request'; export const imageUploadUrl = `${import.meta.env.VITE_BASE_API}/backend/image-upload`; export const getProcess = async (): Promise => (await axios.post('/judgment/judgment/stRecord/getProcess?systemId=19')).data; export const getProcessInformationBasedOnRoles = async (id: number): Promise => (await axios.post(`/judgment/judgment/stRecord/getProcessInformationBasedOnRoles?systemId=19&parentId=${id}`)).data; export const addOperation = async (data: Record): Promise => (await axios.post('/product/product/bank/operation/addOperation', data)).data; export const checkPointList = async (projectId: number, displayCollection?: number | string = ''): Promise => (await axios.post(`/judgment/judgment/stRecord/checkPointList?projectId=${projectId}&displayCollection=${displayCollection}`)).data; export const deleteCache = async (data: Record): Promise => ( await axios.get( `/product/product/bank/operation/deleteCache?projectId=${data.projectId}&checkpoint=${data.checkpointId}&assessmentId=${data.assessmentId}&competitionId=${data.competitionId}`, ) ).data; export const getOperation = async (params?: Record): Promise => (await axios.get('/product/product/bank/operation/getOperation', { params })).data; export const queryCache = async (params?: Record): Promise => (await axios.get('/product/product/bank/operation/queryCache', { params })).data;