recruit.js 584 B

123456789101112131415161718
  1. import request from './request.js';
  2. const getList = async (data) => {
  3. const res = await request.get({ url: `/recruit/list`, data });
  4. return res.data;
  5. }
  6. const getDetails = async ({ id }) => {
  7. const res = await request.get({ url: `/recruit/details/${id}` });
  8. return res.data;
  9. }
  10. const getStatus = async ({ id }) => {
  11. const res = await request.get({ url: `/recruit/status/${id}` });
  12. return res.data;
  13. }
  14. const report = async ({ id }) => {
  15. const res = await request.post({ url: `/recruit/report/${id}` });
  16. return res.data;
  17. }
  18. export default { getList, getDetails, getStatus, report };