zcloud-gbs-eightwork-react/src/api/eightwork/index.js

31 lines
926 B
JavaScript

import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
export const eightworkList = declareRequest(
"eightworkLoading",
`Post > @/eightwork/eightworkInfo/list`,
);
export const eightworkInfo = declareRequest(
"eightworkLoading",
`Get > /eightwork/eightworkInfo/{id}`,
);
export const eightworkSupplementaryInfo = declareRequest(
"eightworkLoading",
`Post > @/eightwork/eightworkSupplementaryInfo/list`,
);
export const eightworkMeasuresLogs = declareRequest(
"eightworkLoading",
`Get > /eightwork/measuresLogs/listAll/{workId}`,
);
export const eightworkTaskLogFlowChart = declareRequest(
"eightworkLoading",
`Get > /eightwork/taskLog/flowChart/{workId}`,
);
export const eightworkType = declareRequest(
"eightworkLoading",
`Post > @/eightwork/eightworkTask/listByWorkType`,
);
export const eightworkRecordsList = declareRequest(
"eightworkLoading",
`Post > @/eightwork/eightworkInfo/list`,
);