family.js 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. import request from './request.js';
  2. // 修改家人信息
  3. const familyInfo = async (data) => {
  4. const res = await request.post({ url: `/user/commit-application`, data });
  5. return res.data;
  6. }
  7. // 获取家人信息
  8. const getFamilyInfo = async (data) => {
  9. const res = await request.get({ url: `/wx/resident/members`, data });
  10. return res.data;
  11. }
  12. // 获取家人信息详情
  13. const getFamilyInfoDetails = async (data) => {
  14. const res = await request.get({ url: `/wx/resident/info`, data });
  15. return res.data;
  16. }
  17. // 报备状态
  18. const membersStatus = async (data) => {
  19. const res = await request.get({ url: `/nat/members-status`, data });
  20. return res.data;
  21. }
  22. // 当前任务
  23. const runningTask = async (data) => {
  24. const res = await request.get({ url: `/nat/running-task`, data });
  25. return res.data;
  26. }
  27. // 报备
  28. const filing = async (data) => {
  29. const res = await request.post({ url: `/nat/add-record`, data });
  30. return res.data;
  31. }
  32. export default { familyInfo, getFamilyInfo, filing, membersStatus, runningTask, getFamilyInfoDetails };