safety-eval-service-frontend/src/api/staffInfo/index.js

33 lines
888 B
JavaScript

import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
export const staffInfoList = declareRequest(
"staffInfoLoading",
"Get > /safetyEval/org-personnel/page",
"staffInfoList: [] | res.data || [] & staffInfoTotal: 0 | res.data?.total || 0",
);
export const staffInfoGet = declareRequest(
"staffInfoLoading",
"Get > /safetyEval/org-personnel/get",
"staffInfoDetail: {} | res.data || {}",
);
export const staffInfoAdd = declareRequest(
"staffInfoLoading",
"Post > @/safetyEval/org-personnel/save",
);
export const staffInfoEdit = declareRequest(
"staffInfoLoading",
"Post > @/safetyEval/org-personnel/modify",
);
export const staffInfoRemove = declareRequest(
"staffInfoLoading",
"Post > @/safetyEval/org-personnel/delete",
);
export const staffInfoResetPassword = declareRequest(
"staffInfoLoading",
"Get > /safetyEval/org-personnel/reset-password",
);