category.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import request from '@/utils/request'
  2. //获取机构列表
  3. export function getMechanismList(data) {
  4. return request({
  5. url:'/api/institution/institution',
  6. method:'get',
  7. data
  8. })
  9. }
  10. // 获取aed列表
  11. export function getAed(data) {
  12. return request({
  13. url: '/api/institution/aed',
  14. method: 'get',
  15. data
  16. })
  17. }
  18. // 获取救护站列表
  19. export function getAidList(data) {
  20. return request({
  21. url:'/api/institution/station',
  22. method:'get',
  23. data
  24. })
  25. }
  26. //申请成为救援者
  27. export function applyRescuer(data) {
  28. return request({
  29. url:'/api/rescue/create',
  30. method:'post',
  31. data
  32. })
  33. }
  34. // 获取志愿者列表
  35. export function getRescuerList(data) {
  36. return request({
  37. url:'/api/rescue/index',
  38. method:'get',
  39. data
  40. })
  41. }
  42. // 申请记录applyList
  43. export function getApplyList(data) {
  44. return request({
  45. url:'/api/rescue/applylst',
  46. method:'get',
  47. data
  48. })
  49. }
  50. // 求救
  51. export function sos(data) {
  52. return request({
  53. url:'/api/rescue/sos',
  54. method:'post',
  55. data
  56. })
  57. }
  58. //逆解析地址
  59. export function geocoder(data) {
  60. return request({
  61. url:'/api/geocoder',
  62. method:'get',
  63. data
  64. })
  65. }
  66. // 获取求救记录/救援记录 type: 0-> 求救 1->救援
  67. export function getRescueList(data) {
  68. return request({
  69. url:'/api/rescue/lst',
  70. method:'get',
  71. data
  72. })
  73. }
  74. // 处理救援申请
  75. export function changeRescue(data) {
  76. return request({
  77. url:'/api/rescue/setstatus',
  78. method:'post',
  79. data
  80. })
  81. }