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): Promise => (await axios.post(`/judgment/judgment/stRecord/checkPointList?projectId=${projectId}`)).data; export const deleteCache = async (projectId: number, checkpoint: number): Promise => (await axios.get(`/product/product/bank/operation/deleteCache?projectId=${projectId}&checkpoint=${checkpoint}`)).data;