You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import axios from '@/utils/request';
|
|
|
|
|
|
|
|
export const imageUploadUrl = `${import.meta.env.VITE_BASE_API}/backend/image-upload`;
|
|
|
|
export const getProcess = async (): Promise<any> => (await axios.post('/judgment/judgment/stRecord/getProcess?systemId=19')).data;
|
|
|
|
export const getProcessInformationBasedOnRoles = async (id: number): Promise<any> =>
|
|
|
|
(await axios.post(`/judgment/judgment/stRecord/getProcessInformationBasedOnRoles?systemId=19&parentId=${id}`)).data;
|
|
|
|
export const addOperation = async (data: Record<string, any>): Promise<any> => (await axios.post('/product/product/bank/operation/addOperation', data)).data;
|
|
|
|
export const checkPointList = async (projectId: number, displayCollection?: number | string = ''): Promise<any> =>
|
|
|
|
(await axios.post(`/judgment/judgment/stRecord/checkPointList?projectId=${projectId}&displayCollection=${displayCollection}`)).data;
|
|
|
|
export const deleteCache = async (data: Record<string, any>): Promise<any> =>
|
|
|
|
(
|
|
|
|
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<string, any>): Promise<any> => (await axios.get('/product/product/bank/operation/getOperation', { params })).data;
|