api.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import { get, post } from "@/http/http.js"
  2. /**
  3. * 微信登录
  4. */
  5. export function api_wechatLoginEncrypt(data){
  6. return post("/auth/wechatLoginEncrypt", data);
  7. }
  8. /**
  9. * 微信登录2
  10. */
  11. export function api_wechatAuth(data){
  12. return post("/auth/wechatAuth", data);
  13. }
  14. /**
  15. * 绑定工号
  16. */
  17. export function api_bindAccount(data){
  18. return post("/auth/bindAccount", data);
  19. }
  20. /**
  21. * 获取系统名称
  22. */
  23. export function api_getSysNameAndLogo(){
  24. return get("/auth/getSysNameAndLogo");
  25. }
  26. /**
  27. * 获取字典列表
  28. */
  29. export function api_getDictionary(data){
  30. return post("/common/common/getDictionary", data);
  31. }
  32. /**
  33. * 获取事件列表
  34. */
  35. export function api_incident(data){
  36. return post("/user/data/fetchDataList/incident", data);
  37. }
  38. /**
  39. * 获取事件列表-数量
  40. */
  41. export function api_incident_count(data){
  42. return post("/flow/incident/list/count", data);
  43. }
  44. /**
  45. * 获取楼栋列表
  46. */
  47. export function api_area(data){
  48. return post("/user/data/fetchDataList/area", data);
  49. }
  50. /**
  51. * 获取故障现象列表
  52. */
  53. export function api_incidentcategory(data){
  54. return post("/bpm/data/fetchDataList/incidentcategory", data);
  55. }
  56. /**
  57. * 获取报修图片列表
  58. */
  59. export function api_wechatRequesterIncident(data){
  60. return get("/common/common/listAttachment/wechatRequesterIncident/" + data);
  61. }
  62. /**
  63. * 获取通话音频
  64. */
  65. export function api_callrecord(data){
  66. return post("/bpm/data/fetchDataList/callrecord", data);
  67. }