Changes between Version 164 and Version 165 of baby3.0_developers/interface
- Timestamp:
- 03/17/2016 10:28:34 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
baby3.0_developers/interface
v164 v165 185 185 **开发人员:** 186 186 >后端 187 >url: http://my.pcbaby.com.cn/intf/forApp/verifySerialNo.jsp 187 188 ** HTTP请求方式:** 188 189 >post … … 197 198 **请求参数:** 198 199 ||参数名||类型||必须||说明|| 199 || common_session_id ||string ||是 || 登录用户id||200 || serial_no || string||是 ||系列号 ||200 || common_session_id ||string ||是 ||用户登录认证信息 || 201 || serial_no ||long||是 ||系列号 || 201 202 || type ||int ||是 ||设备种类(1:胎语仪,2:体重秤) || 202 203 … … 214 215 **开发人员** 215 216 >( 后端) 217 >url: http://my.pcbaby.com.cn/intf/forApp/activateSerialNo.jsp 216 218 **HTTP请求方式:** 217 219 >post … … 226 228 **请求参数:** 227 229 ||参数名||类型||必须||说明|| 228 || common_session_id ||string ||是 ||用户 id||230 || common_session_id ||string ||是 ||用户登录认证信息|| 229 231 || phone_number ||string ||是 ||手机号|| 230 || serial_no || string||是 ||系列号||232 || serial_no ||long||是 ||系列号|| 231 233 || code ||int ||是 ||验证码|| 232 234 || type ||int ||是 ||设备种类(1:胎语仪,2:体重秤)|| … … 247 249 **开发人员** 248 250 >( 后端) 251 >url: http://my.pcbaby.com.cn/intf/forApp/getSerialNo.jsp 249 252 **HTTP请求方式:** 250 253 >post … … 259 262 **请求参数:** 260 263 ||参数名||类型||必须||说明|| 261 || common_session_id ||string ||是 ||用户 id||264 || common_session_id ||string ||是 ||用户登录认证信息|| 262 265 || phoneNum ||string ||是 ||手机号|| 263 266 || type ||int ||是 ||设备种类(1:胎语仪,2:体重秤)|| … … 367 370 **开发人员** 368 371 >( 后端) 372 >url: http://my.pcbaby.com.cn/intf/forApp/saveWeightRecord.jsp 369 373 **HTTP请求方式:** 370 374 >post … … 379 383 **请求参数:** 380 384 ||参数名||类型||必须||说明|| 381 || common_session_id ||string ||是 ||用户id|| 385 || common_session_id ||string ||是 ||用户登录认证信息|| 386 ||serial_no|| lonf|| 否|| 序列号|| 382 387 || lemmaId ||int ||是 ||时间轴id|| 383 388 || height ||float ||不是 ||身高|| … … 394 399 返回参数: 395 400 { 396 “status”:0,(0代表成功,-1代表失败) //处理状态 397 “message”: (描述信息), 398 “height”: 175, (身高,可以为空) 399 “beforeWeight”:50.0 (孕前体重,可以为空) 401 “height”:175,//当前身高 402 “beforeWeight”:"85" //孕前体重 403 “dueDate”":"2015-04-01", //预产期 404 “status”:0,//处理状态,0正常,-1异常 405 “message”:"用户体重记录保存成功" //状态内容 400 406 } 401 407 … … 405 411 **开发人员** 406 412 >( 后端) 413 >url: http://my.pcbaby.com.cn/intf/forApp/delWeightRecord.jsp 407 414 **HTTP请求方式:** 408 415 >post … … 417 424 **请求参数:** 418 425 ||参数名||类型||必须||说明|| 419 || common_session_id ||string ||是 ||用户 id||426 || common_session_id ||string ||是 ||用户登录认证信息|| 420 427 || lemmaId ||int||是 ||时间轴id|| 421 428 || date ||string ||是 ||当天日期(2016-05-02)|| … … 425 432 返回参数: 426 433 { 427 status:”0”(0代表正常,-1代表异常)428 message:”删除成功”434 “status”:0,//处理状态,0正常,-1异常 435 “message”:"用户体重记录删除成功" //状态内容 429 436 } 430 437 }}} … … 538 545 **开发人员** 539 546 >(后端,UPA) 547 >url: http://my.pcbaby.com.cn/intf/forApp/delBeatRecord.jsp 540 548 **HTTP请求方式:** 541 549 >post … … 550 558 **请求参数:** 551 559 ||参数名||类型||必须||说明|| 552 || common_session_id ||string ||是 ||用户 id||560 || common_session_id ||string ||是 ||用户登录认证信息|| 553 561 || record_time ||string ||是 ||123456(时间戳)|| 554 562 … … 556 564 返回参数: 557 565 { 558 status: ”0”(0代表正常,-1代表异常),559 message:”删除成功”566 status:0, 567 message:”删除成功” 560 568 } 561 569 … … 599 607 **开发人员** 600 608 >( 后端) 609 >url: http://my.pcbaby.com.cn/intf/forApp/uploadBeatRecord.jsp 601 610 **HTTP请求方式:** 602 611 >post … … 611 620 **请求参数:** 612 621 ||参数名||类型||必须||说明|| 613 || common_session_id ||string ||是 ||用户 id||622 || common_session_id ||string ||是 ||用户登录认证信息|| 614 623 {{{ 615 624 请求参数: 616 record_data_array:(用户记录数据集,Json数组格式) 617 {//一条记录格式 618 619 //公共项 620 recTime: // 记录时间(时间戳) 621 occurTime: // 发生时间(时间戳) 622 recType: // 记录类型 623 comments: // 备注 624 file_url: // 音频文件url 625 upload_category: // 指定上传操作种类(1胎心,23成人心跳) 626 627 sequence_no; // 上传文件序列号(胎语默认设为1) 628 629 630 //胎语 631 avgRate_fetalBeat: // 平均心率 632 duration_fetalBeat: // 时长 633 beatValue_fetalBeat: // 胎心数据 634 beatTime_fetalBeat: // 对应胎心数据的时间, 单位为秒 635 tagTime_fetalBeat: // 胎心时间 单位为秒 636 //成人心跳 637 avgRate_adultBeat: // 平均心率 638 duration_adultBeat: // 时长 639 beatValue_adultBeat: // 胎心数据 640 beatTime_adultBeat: // 对应胎心数据的时间, 单位为秒 641 tagTime_adultBeat: // 成人心跳时间 单位为秒 625 record_data_array:用户记录数据集(json数组格式) 626 record_data_array={ 627 upload_category int 否 更新类型 (1胎语 23成人心跳) 628 recTime bigint 否 记录时间(时间戳)[0 - 2147483647] 629 occurTime bigint 否 发生时间(时间戳) 630 recType int 否 记录类型 631 comments varchar 否 备注 632 avgRate_fetalBeat int 否 平均心率 633 duration_fetalBeat int 否 时长 634 beatValue_fetalBeat varchar 否 心跳数据组 635 beatTime_fetalBeat varchar 否 心跳时间组 636 tagTime_fetalBeat varchar 否 心跳时间 637 file_url varchar 否 音频路径 642 638 } 643 ….644 ]645 639 646 640 }}} … … 649 643 返回结果: 650 644 { 651 “status”:0, //处理状态652 “message”:”OK”, //相关状态信息653 “upload_success_count”:100, //上传成功记录条数654 “upload_success_array”: //上传成功数据的记录类型和记录时间数组645 "status":0, //处理状态 646 "message":"OK", //相关状态信息 647 "upload_success_count":100, //上传成功记录条数 648 "upload_success_array": //上传成功数据的记录类型和记录时间数组 655 649 [ 656 650 { 657 "recTime": “148959560000”, //记录时间 658 "recType": "1", //记录类型 659 } 660 651 "recTime": "148959560000", //记录时间 652 "recType": "1", //记录类型 653 }, 654 ... 655 ] 661 656 } 662 657 … … 666 661 **开发人员** 667 662 >( 后端) 663 >url: http://my.pcbaby.com.cn/intf/forApp/loadBeatRecord.jsp 668 664 **HTTP请求方式:** 669 665 >post … … 678 674 **请求参数:** 679 675 ||参数名||类型||必须||说明|| 680 || common_session_id ||string ||是 ||用户 id||676 || common_session_id ||string ||是 ||用户登录认证信息|| 681 677 || record_type ||string ||是 || 用户记录类型(胎语默认为1) || 682 678 ||recTime ||int ||是 ||记录时间(时间戳)|| … … 688 684 "message":"OK", //相关状态信息 689 685 "download_record_data": 690 {686 { 691 687 //公共项 688 upload_category: // 数据类型 (1胎语 23成人心跳) 692 689 recTime: // 记录时间 693 690 occurTime: // 发生时间 … … 702 699 audioPath_fetalBeat: // 胎心音频路径 703 700 704 //成人心跳701 //成人心跳 705 702 avgRate_adultBeat: // 平均心率 706 703 duration_adultBeat: // 时长 … … 708 705 beatTime_adultBeat: // 对应胎心数据的时间, 单位为秒 709 706 tagTime_adultBeat: // 成人心跳时间 单位为秒 710 audioPath_adultBeat: // 成人心跳音频路径711 707 audioPath_adultBeat: // 成人心跳音频路径 708 } 712 709 } 713 }714 710 715 711 }}} … … 730 726 **请求参数:** 731 727 ||参数名||类型||必须||说明|| 732 || common_session_id ||string ||是 ||用户 id||728 || common_session_id ||string ||是 ||用户登录认证信息|| 733 729 || pageNo ||int ||是 ||第几页|| 734 730 || pageSize ||int ||是 ||(一页加载10条)|| … … 897 893 **请求参数:** 898 894 ||参数名||类型||必须||说明|| 899 || common_session_id||string ||是 ||cookie里面传入,用户登录认证信息||900 895 || pageNo ||int ||是 ||第几页|| 901 896 || pageSize ||int ||是 ||(一页加载10条)||
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)