@big-bear
2017-05-11T09:41:57.000000Z
字数 9874
阅读 1104
云宝
api
url:
/api/userSession
参数:
{
"filter[password]":e10adc3949ba59abbe56e057f20f883e
"filter[loginName]":15200000004
}
登录时候用户名用15200000004 密码123456
{
data:[{
"type": "userSession",
"id": "33",
"attributes": {
"customerId":74
"password": "e10adc3949ba59abbe56e057f20f883e",
"staffTel": "15200000004",
"loginName": "15200000004",
"delStatus": 0,
"name": "员工4",
"age": 30,
"token": "4c051688-2880-44e1-9c35-4fab8fe7389c",
"avatar":"http://... " //头像
},
"links":{
"self": "http://localhost:9080/api/userSession/33"
}
"relationships":{
"org": {
"links": {
"self": "http://localhost:9080/api/userSession/33/relationships/org",
…},
…},
…}
}],
include:[
...
]
}
api/user/{id}
{
"data": {
"type": "user",
"id": "33",
"attributes": {
"lastUpdateDateTime": 1491898647,
"isGroupFlag": 0,
"staffCardCode": "130225198605076656",
"staffTel": "15200000004",
"loginName": "15200000004",
"curAddress": "大地方",
"delStatus": 0,
"name": "员工4",
"isNurseFlag": 0,
"age": 30,
"passcode": "e10adc3949ba59abbe56e057f20f883e",
"createDateTime": 1491898647
},
"relationships": {
"customers": {
"links": {
"self": "http://localhost:9080/api/user/33/relationships/customers",
"related": "http://localhost:9080/api/user/33/customers"
}
},
...
},
"links": {
"self": "http://localhost:9080/api/user/33"
}
},
"included": [
...
]
}
URL
api/customer/{id}
参数
返回值
{
"data": {
"type": "customer",
"id": "110",
"attributes": {
"birthday": -760492800,
"discountRate": "0.0%",
"referenceNursingPrice": "200",
"headImg": "2017-04-11/1491905638_0da0d643b7ce8ed88ec32d848407e509.jpg",
"actualPrice": "150.0",
"actualDeposit": "10000",
"changePriceFlag": 0,
"cardCode": "130225194511265641",
"updateTime": 1491905640,
"checkInDate": 1491753600,
"referencePrice": "150",
"phone": "15400000001",
"createTime": 1491823572,
"qrCodeUrl": "2017-04-10/5f93f983524def3dca464469d2cf9f3e.png",
"delStatus": 0,
"name": "老人1",
"applyFlag": 0,
"age": 72
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/customer/110"
}
},
"included": [
...
]
}
User recordUser; //记录人
Integer realMoneyCost; //实际花费(钱)
Integer realPointCost; //实际花费(积分)
Integer pointIncrease; //获得积分
url
/api/nursingplanexe
参数
{
filters[itemProject][project][customer][id]:74
}
{
"data": [
{
"type": "nursingplanexe",
"id": "91",
"attributes": {
"exeStartTime": 1491906285,
"delStatus": 0,
"remark": "{}",
"createDateTime": 1491906285
},
"relationships": {
...
},
},
...
],
"included": [
{
"type": "nursingprojectitem",
"id": "273",
"attributes": {
"delStatus": 0,
"frequency": "1"
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/nursingprojectitem/273"
}
},
{
"type": "nursingproject",
"id": "79",
"attributes": {
"lastUpdateDateTime": 1492062165,
"delStatus": 1,
"name": "",
"createDateTime": 1492062165
},
"relationships": {
...
}
},
{
"type": "customer",
"id": "74",
"attributes": {
"birthday": -1110153600,
"customerPS": "中等",
"guardianFirstContact": "13901038303",
"discountRate": "13.793103448275861%",
"guardianFirstName": "于丽",
"referenceNursingPrice": "200",
"address": "科荟路51号美伦堡小区7-1-501",
"actualPrice": "200",
"actualDeposit": "200000",
"changePriceFlag": 0,
"cardCode": "210204193410285774",
"updateTime": 1491811458,
"checkInDate": 1491148800,
"referencePrice": "232",
"phone": "13691303684",
"createTime": 1491467757,
"guardianFirstAddress": "朝阳区科荟路美仑堡小区7-1-501",
"delStatus": 1,
"name": "于怀芳",
"applyFlag": 0,
"age": 83,
"guardianFirstCardCode": "110108196007276026"
},
}
]
}
}
url
/api/message
参数
{
"page[number]":1,
"page[size]":10,
"filter[toUser][id]":33
}
备注
新增字段消息类型 businessType,类型Dicttype,groupcoud为messageBusinessType
返回值
{
"data": [
{
"type": "message",
"id": "994",
"attributes": {
"code": "MESSAGECODE_HEALTHNOTICE",
"business": "healthExamType3",
"num": 0,
"delStatus": 0,
"hasRead": 0,
"type": 2,
"content": "{\"customerId\":74,\"customerName\":\"于怀芳\",\"result\":\"65436\"}"
},
"relationships": {
},
"links": {
"self": "http://localhost:9080/api/message/994"
}
},
...
],
"included": [
],
"meta": {
"name": "page information",
"totalCount": 7,
"size": 10,
"totalPage": 1,
"currPage": 1,
"startNum": 1,
"endNum": 7
}
}
url
/api/message/{id}
参数
id
返回值
{
"data": {
"type": "message",
"id": "994",
"attributes": {
"code": "MESSAGECODE_HEALTHNOTICE",
"business": "healthExamType3",
"num": 0,
"delStatus": 0,
"hasRead": 0,
"type": 2,
"content": "{\"customerId\":74,\"customerName\":\"于怀芳\",\"result\":\"65436\"}"
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/message/994"
}
},
"included": [
...
]
}
Feedback extends BaseEntity
Integer createTime;//创建时间
Customer customer;//反馈人
String title; //标题
String contents; //内容
Dicttype type; //类型 对应groupcode为feedbackType
保存走save方法
Long id;
Short delStatus;
String title;//名称
String content;//内容
String pic;//图片
Dicttype type;//活动类型
Tenant tenant;//对应租户
Long id;
Short delStatus;
Tenant tenant;//对应租户
String time; //活动时间
Dicttype day; //周几
Activity activity;//活动
String place //举办地点
Stirng picPath//图片路径
String discription //描述
Long id;
Short delStatus;
Tenant tenant;//对应租户
ActivityPlan activityPlan;//活动安排
Employee employee; //服务人员
Customer customer; //预约用户
Integer activityTime //活动时间
url
/api/activity
参数
无
返回值
{
"data": [
{
"type": "activity",
"id": "1",
"attributes": {
"delStatus": 0,
"title": "613",
"content": "一次啊"
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/activity/1"
}
},
...
],
"included": [
...
]
}
url
/api/activityPlan
参数
{
"filter[project][customer][id]":1
}
{
"data": [
{
"type": "activityPlan",
"id": "1",
"attributes": {
"delStatus": 0,
"time": "上午",
"place": "故宫"
},
"relationships": {},
"links": {
"self": "http://localhost:9080/api/activityPlan/1"
}
},
...
],
"included": [
...
]
}
请求同日程列表
请求同日程列表详细
url
/api/employee
参数
无
返回值
{
"data": [
{
"type": "employee",
"id": "36",
"attributes": {
"lastUpdateDateTime": 1491881888,
"staffCardCode": "130225198608095556",
"toPositionDate": 1490716799,
"contractEndDate": 1618588799,
"leaderFlag": 1,
"createDateTime": 1491822334,
"staffBirth": 523987199,
"isGroupFlag": 0,
"staffTel": "15200000001",
"curAddress": "规范的公司答复",
"delStatus": 0,
"name": "员工1",
"schoolName": "",
"isNurseFlag": 0,
"age": 30
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/employee/36"
}
},
...
],
"included": [
...
]
}
/api/activityOrder
走save方法
url
/api/activityOrder
参数 无
返回值
{
"data": [
{
"type": "activityOrder",
"id": "1",
"attributes": {
"delStatus": 0
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/activityOrder/1"
}
}
],
"included": [
...
]
}
String title; //标题
String contents; //内容
String picPath; //图片地址
Integer createTime;//开始时间
//新增字段
Customer customer;
Integer createTime; //创建时间
String title; //名称
String content; //内容
Integer checkScore; //签到分数
Integer mealScore; //膳食分数
Integer sportScore; //运动分数
Integer medicationScore; //用药分数
Integer recoveryScore; //康复分数
//新增字段
Customer customer
String title; //名称
String content; //内容
Integer createTime; //创建时间
String picPath; //图片地址
String url; //链接地址
Integer isChose; //是否选择
Dicttype type; //方案类型
String title; //标题
String content; //内容
String picPath; //图片地址
Dicttype type; //类型
Dicttype sprotType; //typecode sportType
Integer sprotTime;
Customer customer; //用户
Scheme scheme; //方案
Integer createTime;//创建时间
String title; //标题
String contents; //内容
String picPath; //图片路径
Customer customer; //用户
Integer createTime; //创建时间
Integer isTaken; //是否用药
Integer isInTime; //是否按时用药
Customer customer; //用户
url
/api/physicalReport
参数
{
filter[customer][id]:74
sort[createTime]:desc
}
{
"data": [
{
"type": "physicalReport",
"id": "4",
"attributes": {
"contents": "123131",
"createTime": 1493049600,
"delStatus": 0,
"title": "111"
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/physicalReport/4"
}
},
...
],
"included": []
}
url
/api/evaluateresult
参数
{
filter[customer][id]:74
sort[createDateTime]:desc
}
{
"data": [
{
"type": "evaluateresult",
"id": "41",
"attributes": {
"lastUpdateDateTime": 1491903947,
"score": "15",
"contents": "永恒岛开香炉的小盗贼",
"delStatus": 0,
"batch": 0,
"createDateTime": 1491903947
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/evaluateresult/41"
}
},
...
],
"included": [
...
]
}
url
/api/executionReport
参数
{
filter[customer][id]:74
sort[createTime]:desc
}
{
"data": [
{
"type": "executionReport",
"id": "1",
"attributes": {
"checkScore": 1,
"medicationScore": 4,
"recoveryScore": 5,
"sportScore": 3,
"delStatus": 0,
"title": "asdf",
"mealScore": 2,
"content": "5456"
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/executionReport/1"
}
},
...
],
"included": []
}
url
/api/relCustomerScheme
参数
{
filter[customer][id]:74
sort[scheme][createTime]:desc
filter[scheme][isChose]:1
filter[scheme][type][typecode]:schemeType1
}
获取当前膳食方案时候有带上参数 filter[scheme][isChose]:1
如果获取列表,把这个参数去掉
- 返回值
{
"data": [
{
"type": "relCustomerScheme",
"id": "1",
"attributes": {
"delStatus": 0
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/relCustomerScheme/1"
}
},
...
],
"included": [
{
"type": "scheme",
"id": "3",
"attributes": {
"picPath": "2017-04-16/1491469072_3c109932ea9d1fce5e339f077b8bfc21.jpg",
"contents": "333",
"delStatus": 0,
"title": "333",
"url": "333",
"isChose": 0
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/scheme/3"
}
},
...
]
}
/api/schemeRecord
url
/api/relCustomerScheme
参数
{
filter[customer][id]:74
sort[scheme][createTime]:desc
filter[scheme][isChose]:1
filter[scheme][type][typecode]:schemeType2
}
获取当前运动方案时候有带上参数 filter[scheme][isChose]:1
如果获取列表,把这个参数去掉
- 返回值
{
"data": [
{
"type": "relCustomerScheme",
"id": "1",
"attributes": {
"delStatus": 0
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/relCustomerScheme/1"
}
},
...
],
"included": [
{
"type": "scheme",
"id": "3",
"attributes": {
"picPath": "2017-04-16/1491469072_3c109932ea9d1fce5e339f077b8bfc21.jpg",
"contents": "333",
"delStatus": 0,
"title": "333",
"url": "333",
"isChose": 0
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/scheme/3"
}
},
...
]
}
/api/schemeRecord
url
/api/drugAdvice
参数
{
filter[customer][id]:74
}
{
"data": [
{
"type": "drugAdvice",
"id": "1",
"attributes": {
"picPath": "1111",
"createTime": 1492504056000,
"contents": "1111",
"delStatus": 0,
"title": "111"
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/drugAdvice/1"
}
}
],
"included": [
...
]
}
url
/api/drugRecord
参数
drugRecord走save方法