1,血压测量按年统计
[get] rest/hBloodpressureController/countmonth/{userid}/{field}/{year}
//{用户id,字段:(),年份(2017...)
field:{bp_sys|bp_dia|bp_pulse}
{
"result": [
{
"month": 10,
"field": "bp_sys",
"max": "5",
"min": "1",
"avg": "1.67"
},
{
"month": 11,
"field": "bp_sys",
"max": "1",
"min": "1",
"avg": "1.00"
}
],
"statusCode": "000000",
"error": ""
}
2, 血氧测量按年统计
[get] rest/hBloodoxygenController/countmonth/{userid}/{field}/{year}
//{用户id,字段:(),年份(2017...)
field:{bo_xy , bo_mb}
{
"result": [
{
"date": 11,
"field": "bo_xy",
"max": "98",
"min": "96",
"avg": "96.46"
}
],
"error": "",
"statusCode": "000000"
}
3,耳温测量按年统计
[get] rest/hEartemperatureController/countmonth/{userid}/{year}
//{用户id,字段:(),年份(2017...)
{
"result": [
{
"date": 10,
"field": "eartemp_temp",
"max": "3",
"min": "3",
"avg": "3.00"
},
{
"date": 11,
"field": "eartemp_temp",
"max": "1",
"min": "1",
"avg": "1.00"
}
],
"error": "",
"statusCode": "000000"
}
4,体重体脂按年测量数据
[get] rest/hWeightBodyfatController/countmonth/{userid}/{field}/{year}
//{用户id,字段:(),年份(2017...)
*field:{"body_weight|body_fat_ratio|body_muscle_mass|body_moisture|body_bmi|
body_bmr|body_bone_mass|body_visceral_fat"};
{
"result": [
{
"date": 11,
"field": "body_weight",
"max": "79.6",
"min": "44.1",
"avg": "67.89"
}
],
"error": "",
"statusCode": "000000"
}
5,尿检按年测量数据
[get] rest/hUrineTestController/countmonth/{userid}/{field}/{year}
//{用户id,字段:(),年份(yyyy)
field:{leu|nit|ubg|pro|ph|bld|sg|ket|bil|glu|vc}
{
"result": [
{
"date": 11,
"field": "leu",
"max": "2",
"min": "2",
"avg": "2.00"
}
],
"error": "",
"statusCode": "000000"
}
6,心电按年检测数据
[get] rest/hElectrocardingraphyController/countmonth/{userid}/{year}
//{用户id,字段:(),年份(yyyy)
{"result":[{"date":11,"field":"hr","max":"88","min":"3","avg":"64.12"}],"error":"","statusCode":"000000"}
7-1,血糖按年统计
[get] rest/hBloodSugarController/countmonth/{userid}/{foodstatus}/{year}
//{用户id,字段:(),年份(yyyy)
{"result":[{"date":10,"field":"foodstatus","max":"7","min":"5.29","avg":"6.81"}],"error":"","statusCode":"000000"}
7-2,血糖统计检测
[get] rest/hBloodSugarController/count/{userid}/{year}
//{用户id,字段:(),年份(yyyy)
{
"result": [
{
"date": "2017-10-23",
"field": "foodstatus",
"max": "5.29",
"min": "5.29",
"avg": "5.29"
}
],
"error": "",
"statusCode": "000000"
}
7-3 通过userid查询血糖数据
[post] rest/hBloodSugarController/get
body:{
"userid":"" ,
"startindex":"10",
"pagesize":"3",
"begincreatetime":"2016-12-12 00:00:00",
"endcreatetime":"2018-12-13 00:00:00"
}
result:{"result":[],"error":"","statusCode":"000000"}
血脂
1,录入数据
[post] rest/hBloodFatController
body:{
"userid":"",//用户id
"token":"",
"chol":"",//胆固醇
"trig":"",//甘油三脂
"hdl_chol":"",//高密度蛋白质
"calc_ldl":"",//低密度蛋白质
"tc_hdl":"",//
"source":"",//数据来源(ios,android,wx)
"boundtype":"",//绑定类型,暂时只有bluetooth
"name":"",//设备名称
}
result:{
"result": {
"name": "apple watch 38mm",
"id": "ff8080816063cfce016063d2a2130000",
"chol": "10",
"trig": "2",
"hdlChol": "3",
"calcLdl": "2",
"tcHdl": "1",
"source": "ios",
"userid": "8af4dd1c5f46eeb3015f471d693c0024",
"createDate": 1513503236619,
"boundtype": "bluetooth"
},
"error": "",
"statusCode": "000000"
}
error:{"result":"","error":"result丢失","statusCode":"666666"}
2,查看一条数据
[get] rest/hBloodFatController/{id}
result:{"result":{},"error":"","statusCode":"000000"}
3,通过用户ID查看测量数据
[post] rest/hBloodFatController/get
body:{
"userid":"",//用户id
"startindex":"",//起始下标,分页用
"pagesize":"",//每页条数
"begincreatetime":"2017-01-01 12:01:21" ,
"endcreatetime":"2017-01-01 12:01:21"
}
result:{"result":[{}],"statusCode":"000000","error":""}
4,通过数据ID删除数据
delete] rest/hBloodFatController/{id}
result:{"result":"ok","error":"","statusCode":"000000"}
5,统计信息
[get] rest/hBloodFatController/count/{userid}/{field}/{starttime}/{endtime}
//{用户id,字段:(),开始时间(yyyy-MM-dd) 结束时间(yyyy-MM-dd)}
field:{chol | trig | hdl_chol| calc_ldl | tc_hdl}
result:{
"result": [
{
"date": "2017-10-20",
"field": "chol",
"max": "5",
"min": "1",
"avg": 3
},
{
"date": "2017-10-31",
"field": "chol",
"max": "1",
"min": "1",
"avg": 1
}
],
"error": "",
"statusCode": "000000"
}
6,按年统计信息
[get] rest/hBloodFatController/countmonth/{userid}/{field}/{starttime}/{endtime}
//{用户id,字段:(),开始时间(yyyy-MM-dd) 结束时间(yyyy-MM-dd)}
field:{chol | trig | hdl_chol| calc_ldl | tc_hdl}
result:{
"result": [
{
"month": "12",
"field": "chol",
"max": "5",
"min": "1",
"avg": 3
}
],
"error": "",
"statusCode": "000000"
}
商品
参数 | 是否必须 | 说明 |
---|---|---|
cat_name | 分类名称 | |
goods_sn | 商品编号 | |
goods_name | 商品名称 | |
click_count | 点击数 | |
brand_name | 品牌名称 | |
store_count | 库存数量 | |
comment_count | 商品评论数 | |
weight | 商品重量(g) | |
market_price | 市场价 | |
shop_price | 本店价 | |
cost_price | 商品成本价 | |
keywords | 关键词 | |
goods_remark | 简单描述 | |
goods_content | 详细描述 | |
original_img | 商品图 | |
is_real | 是否为实物,默认为是 | |
is_on_sale | 是否上架,默认为是 | |
is_free_shipping | 是否包邮,默认为是 | |
on_time | 上架时间 | |
sort | 商品排序 | |
is_recommend | 是否推荐 | |
is_new | 是否新品 | |
is_hot | 是否热卖 | |
sales_sum | 销量,默认为0 | |
status | 状态(0,已删除1,正常) |
1,查询商品列表()
[post] rest/tpGoodsController/list
body:{
}
{
"result": [
{
"id": "40289ff06063649c01606376d1e4000f",
"sort": 345345,
"catId": "1",
"isNew": "Y",
"extendCatId": null,
"goodsName": "sfdgsdfg",
"clickCount": 123123,
"brandId": null,
"commentCount": 12312,
"weight": null,
"shopPrice": 23.00,
"keywords": "43534534",
"goodsRemark": "345345345",
"goodsContent": "
345345345345
",
"originalImg": "upload/files/20171217160220aCmydrEe.jpg",
"isReal": "Y",
"isOnSale": "Y",
"isFreeShipping": "Y",
"onTime": 1513756987000,
"isRecommend": "N",
"goodsType": null,
"specType": null,
"exchangeIntegral": null,
"suppliersId": null,
"salesSum": 345345345,
"properties1": null,
"properties2": null,
"updateDate": 1513497816000,
"createDate": 1513497220000,
"updateName": "管理员",
"updateBy": "admin",
"goodsSn": "wrewert",
"marketPrice": 12.00,
"costPrice": 34.00,
"giveIntegral": 34543,
"promType": null,
"promId": null,
"isHot": "Y",
"brandName": "",
"catName": "",
"createName": "管理员",
"createBy": "admin",
"storeCount": 123123
},
{
"id": "40289ff06063649c016063752327000b",
"sort": 23423,
"catId": "1",
"isNew": "Y",
"extendCatId": null,
"goodsName": "qerqerwertre",
"clickCount": null,
"brandId": null,
"commentCount": null,
"weight": null,
"shopPrice": 34534.00,
"keywords": "34345345",
"goodsRemark": "32435243523452345",
"goodsContent": "
erqwerweterwtwerterwt
",
"originalImg": null,
"isReal": "Y",
"isOnSale": "Y",
"isFreeShipping": "Y",
"onTime": 1513497092000,
"isRecommend": "N",
"goodsType": null,
"specType": null,
"exchangeIntegral": null,
"suppliersId": null,
"salesSum": null,
"properties1": null,
"properties2": null,
"updateDate": null,
"createDate": 1513497109000,
"updateName": null,
"updateBy": null,
"goodsSn": "3454524352",
"marketPrice": 345345.00,
"costPrice": 345345.00,
"giveIntegral": 2222,
"promType": null,
"promId": null,
"isHot": "Y",
"brandName": "",
"catName": "",
"createName": "管理员",
"createBy": "admin",
"storeCount": 34534
}
],
"statusCode": "000000",
"error": ""
}
2,修改商品信息
[put] rest/tpGoodsController/{goodsid}
{"result":"ok","error":"","statusCode":"000000"}
3,删除商品(逻辑删除)
[delete] rest/tpGoodsController/{goodsid}
{"result":"ok","error":"","statusCode":"000000"}
参数 | 必须 | 说明 |
---|---|---|
pay_code | 是 | 支付code |
pay_name | 是 | 支付方式名称 |
pay_fee | 是 | 手续费 |
pay_desc | 是 | 描述 |
pay_order | ||
is_cod | 是否货到付款 | |
is_online | 是否在线支付 |
商品详情页:
->1,点击加入购物车->添加成功,购物车显示或者叠加商品
->2,点击立即购买->弹出购买选择->点击确定-> 调用接口生成订单->根据订单信息调用支付sdk
{
1,支付成功时
{
跳页正在支付页->手动查询状态
{
1,当状态为已支付,跳页已付款,准备发货
2,当状态为正在支付,不跳页
}
}
2,支付失败时
{
跳页支付失败
}
3,支付取消时
{
跳页待支付
}
}