[关闭]
@big-bear 2017-05-11T09:41:57.000000Z 字数 9874 阅读 1104

康颐手机端接口

云宝 api


登录

  1. {
  2. "filter[password]":e10adc3949ba59abbe56e057f20f883e
  3. "filter[loginName]":15200000004
  4. }

登录时候用户名用15200000004 密码123456

  1. {
  2. data:[{
  3. "type": "userSession",
  4. "id": "33",
  5. "attributes": {
  6. "customerId":74
  7. "password": "e10adc3949ba59abbe56e057f20f883e",
  8. "staffTel": "15200000004",
  9. "loginName": "15200000004",
  10. "delStatus": 0,
  11. "name": "员工4",
  12. "age": 30,
  13. "token": "4c051688-2880-44e1-9c35-4fab8fe7389c",
  14. "avatar":"http://... " //头像
  15. },
  16. "links":{
  17. "self": "http://localhost:9080/api/userSession/33"
  18. }
  19. "relationships":{
  20. "org": {
  21. "links": {
  22. "self": "http://localhost:9080/api/userSession/33/relationships/org",
  23. …},
  24. …},
  25. …}
  26. }],
  27. include:[
  28. ...
  29. ]
  30. }

账号



  1. {
  2. "data": {
  3. "type": "user",
  4. "id": "33",
  5. "attributes": {
  6. "lastUpdateDateTime": 1491898647,
  7. "isGroupFlag": 0,
  8. "staffCardCode": "130225198605076656",
  9. "staffTel": "15200000004",
  10. "loginName": "15200000004",
  11. "curAddress": "大地方",
  12. "delStatus": 0,
  13. "name": "员工4",
  14. "isNurseFlag": 0,
  15. "age": 30,
  16. "passcode": "e10adc3949ba59abbe56e057f20f883e",
  17. "createDateTime": 1491898647
  18. },
  19. "relationships": {
  20. "customers": {
  21. "links": {
  22. "self": "http://localhost:9080/api/user/33/relationships/customers",
  23. "related": "http://localhost:9080/api/user/33/customers"
  24. }
  25. },
  26. ...
  27. },
  28. "links": {
  29. "self": "http://localhost:9080/api/user/33"
  30. }
  31. },
  32. "included": [
  33. ...
  34. ]
  35. }
  1. {
  2. "data": {
  3. "type": "customer",
  4. "id": "110",
  5. "attributes": {
  6. "birthday": -760492800,
  7. "discountRate": "0.0%",
  8. "referenceNursingPrice": "200",
  9. "headImg": "2017-04-11/1491905638_0da0d643b7ce8ed88ec32d848407e509.jpg",
  10. "actualPrice": "150.0",
  11. "actualDeposit": "10000",
  12. "changePriceFlag": 0,
  13. "cardCode": "130225194511265641",
  14. "updateTime": 1491905640,
  15. "checkInDate": 1491753600,
  16. "referencePrice": "150",
  17. "phone": "15400000001",
  18. "createTime": 1491823572,
  19. "qrCodeUrl": "2017-04-10/5f93f983524def3dca464469d2cf9f3e.png",
  20. "delStatus": 0,
  21. "name": "老人1",
  22. "applyFlag": 0,
  23. "age": 72
  24. },
  25. "relationships": {
  26. ...
  27. },
  28. "links": {
  29. "self": "http://localhost:9080/api/customer/110"
  30. }
  31. },
  32. "included": [
  33. ...
  34. ]
  35. }

消费

model修改 nersingplanexe

  1. User recordUser; //记录人
  2. Integer realMoneyCost; //实际花费(钱)
  3. Integer realPointCost; //实际花费(积分)
  4. Integer pointIncrease; //获得积分
  1. {
  2. filters[itemProject][project][customer][id]:74
  3. }
  1. {
  2. "data": [
  3. {
  4. "type": "nursingplanexe",
  5. "id": "91",
  6. "attributes": {
  7. "exeStartTime": 1491906285,
  8. "delStatus": 0,
  9. "remark": "{}",
  10. "createDateTime": 1491906285
  11. },
  12. "relationships": {
  13. ...
  14. },
  15. },
  16. ...
  17. ],
  18. "included": [
  19. {
  20. "type": "nursingprojectitem",
  21. "id": "273",
  22. "attributes": {
  23. "delStatus": 0,
  24. "frequency": "1"
  25. },
  26. "relationships": {
  27. ...
  28. },
  29. "links": {
  30. "self": "http://localhost:9080/api/nursingprojectitem/273"
  31. }
  32. },
  33. {
  34. "type": "nursingproject",
  35. "id": "79",
  36. "attributes": {
  37. "lastUpdateDateTime": 1492062165,
  38. "delStatus": 1,
  39. "name": "",
  40. "createDateTime": 1492062165
  41. },
  42. "relationships": {
  43. ...
  44. }
  45. },
  46. {
  47. "type": "customer",
  48. "id": "74",
  49. "attributes": {
  50. "birthday": -1110153600,
  51. "customerPS": "中等",
  52. "guardianFirstContact": "13901038303",
  53. "discountRate": "13.793103448275861%",
  54. "guardianFirstName": "于丽",
  55. "referenceNursingPrice": "200",
  56. "address": "科荟路51号美伦堡小区7-1-501",
  57. "actualPrice": "200",
  58. "actualDeposit": "200000",
  59. "changePriceFlag": 0,
  60. "cardCode": "210204193410285774",
  61. "updateTime": 1491811458,
  62. "checkInDate": 1491148800,
  63. "referencePrice": "232",
  64. "phone": "13691303684",
  65. "createTime": 1491467757,
  66. "guardianFirstAddress": "朝阳区科荟路美仑堡小区7-1-501",
  67. "delStatus": 1,
  68. "name": "于怀芳",
  69. "applyFlag": 0,
  70. "age": 83,
  71. "guardianFirstCardCode": "110108196007276026"
  72. },
  73. }
  74. ]
  75. }
  76. }

通知列表

  1. {
  2. "page[number]":1,
  3. "page[size]":10,
  4. "filter[toUser][id]":33
  5. }
  1. {
  2. "data": [
  3. {
  4. "type": "message",
  5. "id": "994",
  6. "attributes": {
  7. "code": "MESSAGECODE_HEALTHNOTICE",
  8. "business": "healthExamType3",
  9. "num": 0,
  10. "delStatus": 0,
  11. "hasRead": 0,
  12. "type": 2,
  13. "content": "{\"customerId\":74,\"customerName\":\"于怀芳\",\"result\":\"65436\"}"
  14. },
  15. "relationships": {
  16. },
  17. "links": {
  18. "self": "http://localhost:9080/api/message/994"
  19. }
  20. },
  21. ...
  22. ],
  23. "included": [
  24. ],
  25. "meta": {
  26. "name": "page information",
  27. "totalCount": 7,
  28. "size": 10,
  29. "totalPage": 1,
  30. "currPage": 1,
  31. "startNum": 1,
  32. "endNum": 7
  33. }
  34. }

通知详情

  1. {
  2. "data": {
  3. "type": "message",
  4. "id": "994",
  5. "attributes": {
  6. "code": "MESSAGECODE_HEALTHNOTICE",
  7. "business": "healthExamType3",
  8. "num": 0,
  9. "delStatus": 0,
  10. "hasRead": 0,
  11. "type": 2,
  12. "content": "{\"customerId\":74,\"customerName\":\"于怀芳\",\"result\":\"65436\"}"
  13. },
  14. "relationships": {
  15. ...
  16. },
  17. "links": {
  18. "self": "http://localhost:9080/api/message/994"
  19. }
  20. },
  21. "included": [
  22. ...
  23. ]
  24. }

反馈

新增model

Feedback extends BaseEntity

  1. Integer createTime;//创建时间
  2. Customer customer;//反馈人
  3. String title; //标题
  4. String contents; //内容
  5. Dicttype type; //类型 对应groupcodefeedbackType

保存走save方法

活动

活动新增三个model

Activity

  1. Long id;
  2. Short delStatus;
  3. String title;//名称
  4. String content;//内容
  5. String pic;//图片
  6. Dicttype type;//活动类型
  7. Tenant tenant;//对应租户

ActivityPlan

  1. Long id;
  2. Short delStatus;
  3. Tenant tenant;//对应租户
  4. String time; //活动时间
  5. Dicttype day; //周几
  6. Activity activity;//活动
  7. String place //举办地点
  8. Stirng picPath//图片路径
  9. String discription //描述

ActivityOrder

  1. Long id;
  2. Short delStatus;
  3. Tenant tenant;//对应租户
  4. ActivityPlan activityPlan;//活动安排
  5. Employee employee; //服务人员
  6. Customer customer; //预约用户
  7. Integer activityTime //活动时间

日程

列表

  1. {
  2. "data": [
  3. {
  4. "type": "activity",
  5. "id": "1",
  6. "attributes": {
  7. "delStatus": 0,
  8. "title": "613",
  9. "content": "一次啊"
  10. },
  11. "relationships": {
  12. ...
  13. },
  14. "links": {
  15. "self": "http://localhost:9080/api/activity/1"
  16. }
  17. },
  18. ...
  19. ],
  20. "included": [
  21. ...
  22. ]
  23. }

日程详细

  1. {
  2. "filter[project][customer][id]":1
  3. }
  1. {
  2. "data": [
  3. {
  4. "type": "activityPlan",
  5. "id": "1",
  6. "attributes": {
  7. "delStatus": 0,
  8. "time": "上午",
  9. "place": "故宫"
  10. },
  11. "relationships": {},
  12. "links": {
  13. "self": "http://localhost:9080/api/activityPlan/1"
  14. }
  15. },
  16. ...
  17. ],
  18. "included": [
  19. ...
  20. ]
  21. }

预约

预约事项列表加载

请求同日程列表

预约时间列表加载

请求同日程列表详细

预约服务人

  1. {
  2. "data": [
  3. {
  4. "type": "employee",
  5. "id": "36",
  6. "attributes": {
  7. "lastUpdateDateTime": 1491881888,
  8. "staffCardCode": "130225198608095556",
  9. "toPositionDate": 1490716799,
  10. "contractEndDate": 1618588799,
  11. "leaderFlag": 1,
  12. "createDateTime": 1491822334,
  13. "staffBirth": 523987199,
  14. "isGroupFlag": 0,
  15. "staffTel": "15200000001",
  16. "curAddress": "规范的公司答复",
  17. "delStatus": 0,
  18. "name": "员工1",
  19. "schoolName": "",
  20. "isNurseFlag": 0,
  21. "age": 30
  22. },
  23. "relationships": {
  24. ...
  25. },
  26. "links": {
  27. "self": "http://localhost:9080/api/employee/36"
  28. }
  29. },
  30. ...
  31. ],
  32. "included": [
  33. ...
  34. ]
  35. }

预约保存

记录

  1. {
  2. "data": [
  3. {
  4. "type": "activityOrder",
  5. "id": "1",
  6. "attributes": {
  7. "delStatus": 0
  8. },
  9. "relationships": {
  10. ...
  11. },
  12. "links": {
  13. "self": "http://localhost:9080/api/activityOrder/1"
  14. }
  15. }
  16. ],
  17. "included": [
  18. ...
  19. ]
  20. }

健康

新增model

PhysicalReport extends BaseEntity (体检报告)

  1. String title; //标题
  2. String contents; //内容
  3. String picPath; //图片地址
  4. Integer createTime;//开始时间
  5. //新增字段
  6. Customer customer;

ExecutionReport (执行报告)

  1. Integer createTime; //创建时间
  2. String title; //名称
  3. String content; //内容
  4. Integer checkScore; //签到分数
  5. Integer mealScore; //膳食分数
  6. Integer sportScore; //运动分数
  7. Integer medicationScore; //用药分数
  8. Integer recoveryScore; //康复分数
  9. //新增字段
  10. Customer customer

scheme(方案)

  1. String title; //名称
  2. String content; //内容
  3. Integer createTime; //创建时间
  4. String picPath; //图片地址
  5. String url; //链接地址
  6. Integer isChose; //是否选择
  7. Dicttype type; //方案类型

schemeRecord方案记录

  1. String title; //标题
  2. String content; //内容
  3. String picPath; //图片地址
  4. Dicttype type; //类型
  5. Dicttype sprotType; //typecode sportType
  6. Integer sprotTime;
  7. Customer customer; //用户
  8. Scheme scheme; //方案

drugAdvice(用药建议)

  1. Integer createTime;//创建时间
  2. String title; //标题
  3. String contents; //内容
  4. String picPath; //图片路径
  5. Customer customer; //用户

drugRecord (用药记录)

  1. Integer createTime; //创建时间
  2. Integer isTaken; //是否用药
  3. Integer isInTime; //是否按时用药
  4. Customer customer; //用户

档案

体检报告

  1. {
  2. filter[customer][id]:74
  3. sort[createTime]:desc
  4. }
  1. {
  2. "data": [
  3. {
  4. "type": "physicalReport",
  5. "id": "4",
  6. "attributes": {
  7. "contents": "123131",
  8. "createTime": 1493049600,
  9. "delStatus": 0,
  10. "title": "111"
  11. },
  12. "relationships": {
  13. ...
  14. },
  15. "links": {
  16. "self": "http://localhost:9080/api/physicalReport/4"
  17. }
  18. },
  19. ...
  20. ],
  21. "included": []
  22. }

评估报告

  1. {
  2. filter[customer][id]:74
  3. sort[createDateTime]:desc
  4. }
  1. {
  2. "data": [
  3. {
  4. "type": "evaluateresult",
  5. "id": "41",
  6. "attributes": {
  7. "lastUpdateDateTime": 1491903947,
  8. "score": "15",
  9. "contents": "永恒岛开香炉的小盗贼",
  10. "delStatus": 0,
  11. "batch": 0,
  12. "createDateTime": 1491903947
  13. },
  14. "relationships": {
  15. ...
  16. },
  17. "links": {
  18. "self": "http://localhost:9080/api/evaluateresult/41"
  19. }
  20. },
  21. ...
  22. ],
  23. "included": [
  24. ...
  25. ]
  26. }

执行报告

  1. {
  2. filter[customer][id]:74
  3. sort[createTime]:desc
  4. }
  1. {
  2. "data": [
  3. {
  4. "type": "executionReport",
  5. "id": "1",
  6. "attributes": {
  7. "checkScore": 1,
  8. "medicationScore": 4,
  9. "recoveryScore": 5,
  10. "sportScore": 3,
  11. "delStatus": 0,
  12. "title": "asdf",
  13. "mealScore": 2,
  14. "content": "5456"
  15. },
  16. "relationships": {
  17. ...
  18. },
  19. "links": {
  20. "self": "http://localhost:9080/api/executionReport/1"
  21. }
  22. },
  23. ...
  24. ],
  25. "included": []
  26. }

方案

膳食

当前膳食方案
  1. {
  2. filter[customer][id]:74
  3. sort[scheme][createTime]:desc
  4. filter[scheme][isChose]:1
  5. filter[scheme][type][typecode]:schemeType1
  6. }

获取当前膳食方案时候有带上参数 filter[scheme][isChose]:1
如果获取列表,把这个参数去掉
- 返回值

  1. {
  2. "data": [
  3. {
  4. "type": "relCustomerScheme",
  5. "id": "1",
  6. "attributes": {
  7. "delStatus": 0
  8. },
  9. "relationships": {
  10. ...
  11. },
  12. "links": {
  13. "self": "http://localhost:9080/api/relCustomerScheme/1"
  14. }
  15. },
  16. ...
  17. ],
  18. "included": [
  19. {
  20. "type": "scheme",
  21. "id": "3",
  22. "attributes": {
  23. "picPath": "2017-04-16/1491469072_3c109932ea9d1fce5e339f077b8bfc21.jpg",
  24. "contents": "333",
  25. "delStatus": 0,
  26. "title": "333",
  27. "url": "333",
  28. "isChose": 0
  29. },
  30. "relationships": {
  31. ...
  32. },
  33. "links": {
  34. "self": "http://localhost:9080/api/scheme/3"
  35. }
  36. },
  37. ...
  38. ]
  39. }
膳食方案上传

运动

当前运动方案
  1. {
  2. filter[customer][id]:74
  3. sort[scheme][createTime]:desc
  4. filter[scheme][isChose]:1
  5. filter[scheme][type][typecode]:schemeType2
  6. }

获取当前运动方案时候有带上参数 filter[scheme][isChose]:1
如果获取列表,把这个参数去掉
- 返回值

  1. {
  2. "data": [
  3. {
  4. "type": "relCustomerScheme",
  5. "id": "1",
  6. "attributes": {
  7. "delStatus": 0
  8. },
  9. "relationships": {
  10. ...
  11. },
  12. "links": {
  13. "self": "http://localhost:9080/api/relCustomerScheme/1"
  14. }
  15. },
  16. ...
  17. ],
  18. "included": [
  19. {
  20. "type": "scheme",
  21. "id": "3",
  22. "attributes": {
  23. "picPath": "2017-04-16/1491469072_3c109932ea9d1fce5e339f077b8bfc21.jpg",
  24. "contents": "333",
  25. "delStatus": 0,
  26. "title": "333",
  27. "url": "333",
  28. "isChose": 0
  29. },
  30. "relationships": {
  31. ...
  32. },
  33. "links": {
  34. "self": "http://localhost:9080/api/scheme/3"
  35. }
  36. },
  37. ...
  38. ]
  39. }
运动方案上传

用药

用药
  1. {
  2. filter[customer][id]:74
  3. }
  1. {
  2. "data": [
  3. {
  4. "type": "drugAdvice",
  5. "id": "1",
  6. "attributes": {
  7. "picPath": "1111",
  8. "createTime": 1492504056000,
  9. "contents": "1111",
  10. "delStatus": 0,
  11. "title": "111"
  12. },
  13. "relationships": {
  14. ...
  15. },
  16. "links": {
  17. "self": "http://localhost:9080/api/drugAdvice/1"
  18. }
  19. }
  20. ],
  21. "included": [
  22. ...
  23. ]
  24. }
上传用药记录
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注