healthRecords.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import Request from '../common/request.js';
  2. let request = new Request().http
  3. // 获取我的健康档案
  4. export function myRecord() {
  5. return request('/app/healthRecord/myRecord', null, 'GET');
  6. }
  7. // 查询今日健康生活
  8. export function HealthLife(data) {
  9. return request('/app/healthRecord/HealthLife', data, 'GET');
  10. }
  11. // 查询健康史模板列表
  12. export function healthHistoryTempList() {
  13. return request('/app/healthRecord/healthHistoryTempList', null, 'GET');
  14. }
  15. // 健康数据列表
  16. export function HealthDataList(data) {
  17. return request('/app/healthRecord/HealthDataList', data, 'GET');
  18. }
  19. // 健康数据详细
  20. export function HealthData(id) {
  21. return request('/app/healthRecord/HealthData/' + id, null, 'GET');
  22. }
  23. // 获取健康生活详细信息
  24. export function getHealthLife(id) {
  25. return request('/app/healthRecord/getHealthLife/' + id, null, 'GET');
  26. }
  27. // 获取健康生活详细信息
  28. export function editRecord(data) {
  29. return request('/app/healthRecord/editRecord', data, 'PUT','application/json;charset=UTF-8');
  30. }
  31. // 新增健康档案
  32. export function addRecord(data) {
  33. return request('/app/healthRecord/addRecord', data, 'POST', 'application/json;charset=UTF-8');
  34. }
  35. // 新增健康生活
  36. export function addFsHealthLife(data) {
  37. return request('/app/healthRecord/addFsHealthLife', data, 'POST', 'application/json;charset=UTF-8');
  38. }
  39. // 新增健康数据
  40. export function addFsHealthData(data) {
  41. return request('/app/healthRecord/addFsHealthData', data, 'POST', 'application/json;charset=UTF-8');
  42. }