Changes between Version 164 and Version 165 of baby3.0_developers/interface


Ignore:
Timestamp:
03/17/2016 10:28:34 AM (10 years ago)
Author:
zhongjilong_JZ
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • baby3.0_developers/interface

    v164 v165  
    185185 **开发人员:** 
    186186 >后端 
     187 >url: http://my.pcbaby.com.cn/intf/forApp/verifySerialNo.jsp 
    187188 ** HTTP请求方式:** 
    188189 >post 
     
    197198 **请求参数:** 
    198199 ||参数名||类型||必须||说明|| 
    199  || common_session_id ||string ||是 ||登录用户id || 
    200  || serial_no ||string ||是 ||系列号 || 
     200 || common_session_id ||string ||是 ||用户登录认证信息 || 
     201 || serial_no ||long||是 ||系列号 || 
    201202 || type ||int ||是 ||设备种类(1:胎语仪,2:体重秤) || 
    202203 
     
    214215  **开发人员** 
    215216  >( 后端) 
     217  >url: http://my.pcbaby.com.cn/intf/forApp/activateSerialNo.jsp 
    216218  **HTTP请求方式:** 
    217219  >post 
     
    226228  **请求参数:** 
    227229 ||参数名||类型||必须||说明|| 
    228  || common_session_id ||string ||是 ||用户id|| 
     230 || common_session_id ||string ||是 ||用户登录认证信息|| 
    229231 || phone_number ||string ||是 ||手机号|| 
    230  || serial_no ||string ||是 ||系列号|| 
     232 || serial_no ||long||是 ||系列号|| 
    231233 || code ||int ||是 ||验证码|| 
    232234 || type ||int ||是 ||设备种类(1:胎语仪,2:体重秤)|| 
     
    247249  **开发人员** 
    248250  >( 后端) 
     251  >url: http://my.pcbaby.com.cn/intf/forApp/getSerialNo.jsp 
    249252  **HTTP请求方式:** 
    250253  >post 
     
    259262  **请求参数:** 
    260263 ||参数名||类型||必须||说明|| 
    261  || common_session_id ||string ||是 ||用户id|| 
     264 || common_session_id ||string ||是 ||用户登录认证信息|| 
    262265 || phoneNum ||string ||是 ||手机号|| 
    263266 || type ||int ||是 ||设备种类(1:胎语仪,2:体重秤)|| 
     
    367370  **开发人员** 
    368371  >( 后端) 
     372  >url: http://my.pcbaby.com.cn/intf/forApp/saveWeightRecord.jsp 
    369373  **HTTP请求方式:** 
    370374  >post 
     
    379383  **请求参数:** 
    380384 ||参数名||类型||必须||说明|| 
    381  || common_session_id ||string ||是 ||用户id|| 
     385 || common_session_id ||string ||是 ||用户登录认证信息|| 
     386 ||serial_no|| lonf|| 否|| 序列号|| 
    382387 || lemmaId ||int ||是 ||时间轴id|| 
    383388 || height ||float ||不是 ||身高|| 
     
    394399  返回参数: 
    395400{ 
    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”:"用户体重记录保存成功" //状态内容 
    400406} 
    401407 
     
    405411  **开发人员** 
    406412  >( 后端) 
     413  >url: http://my.pcbaby.com.cn/intf/forApp/delWeightRecord.jsp 
    407414  **HTTP请求方式:** 
    408415  >post 
     
    417424  **请求参数:** 
    418425 ||参数名||类型||必须||说明|| 
    419  || common_session_id ||string ||是 ||用户id|| 
     426 || common_session_id ||string ||是 ||用户登录认证信息|| 
    420427 || lemmaId ||int||是 ||时间轴id|| 
    421428 || date ||string ||是 ||当天日期(2016-05-02)|| 
     
    425432  返回参数: 
    426433{ 
    427     status:”0”(0代表正常,-1代表异常) 
    428    message:”删除成功” 
     434    “status”:0,//处理状态,0正常,-1异常 
     435    “message”:"用户体重记录删除成功" //状态内容 
    429436} 
    430437}}} 
     
    538545  **开发人员** 
    539546  >(后端,UPA) 
     547  >url: http://my.pcbaby.com.cn/intf/forApp/delBeatRecord.jsp 
    540548  **HTTP请求方式:** 
    541549  >post 
     
    550558  **请求参数:** 
    551559 ||参数名||类型||必须||说明|| 
    552  || common_session_id ||string ||是 ||用户id|| 
     560 || common_session_id ||string ||是 ||用户登录认证信息|| 
    553561 || record_time ||string ||是 ||123456(时间戳)|| 
    554562 
     
    556564  返回参数: 
    557565{ 
    558     status:”0”(0代表正常,-1代表异常) 
    559    message:”删除成功” 
     566    status:0 
     567    message:”删除成功” 
    560568} 
    561569 
     
    599607  **开发人员** 
    600608  >( 后端) 
     609  >url: http://my.pcbaby.com.cn/intf/forApp/uploadBeatRecord.jsp 
    601610  **HTTP请求方式:** 
    602611  >post 
     
    611620  **请求参数:** 
    612621 ||参数名||类型||必须||说明|| 
    613  || common_session_id ||string ||是 ||用户id|| 
     622 || common_session_id ||string ||是 ||用户登录认证信息|| 
    614623 {{{ 
    615624   请求参数: 
    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数组格式) 
     626record_data_array={ 
     627upload_category int 否 更新类型 (1胎语 23成人心跳) 
     628recTime bigint 否 记录时间(时间戳)[0 - 2147483647] 
     629occurTime bigint 否 发生时间(时间戳) 
     630recType int 否 记录类型 
     631comments varchar 否 备注 
     632avgRate_fetalBeat int 否 平均心率 
     633duration_fetalBeat int 否 时长 
     634beatValue_fetalBeat varchar 否 心跳数据组 
     635beatTime_fetalBeat varchar 否 心跳时间组 
     636tagTime_fetalBeat varchar 否 心跳时间 
     637file_url varchar 否 音频路径 
    642638} 
    643 …. 
    644 ] 
    645639 
    646640}}} 
     
    649643  返回结果: 
    650644{ 
    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":                 //上传成功数据的记录类型和记录时间数组 
    655649                 [ 
    656650                        { 
    657                                 "recTime": “148959560000”,      //记录时间 
    658                 "recType": "1",                 //记录类型 
    659                         } 
    660                  
     651                                "recTime": "148959560000",      //记录时间 
     652                                "recType": "1",                 //记录类型 
     653                        }, 
     654                ... 
     655                ]                
    661656} 
    662657 
     
    666661  **开发人员** 
    667662  >( 后端) 
     663  >url: http://my.pcbaby.com.cn/intf/forApp/loadBeatRecord.jsp 
    668664  **HTTP请求方式:** 
    669665  >post 
     
    678674  **请求参数:** 
    679675 ||参数名||类型||必须||说明|| 
    680  || common_session_id ||string ||是 ||用户id|| 
     676 || common_session_id ||string ||是 ||用户登录认证信息|| 
    681677 || record_type ||string ||是 || 用户记录类型(胎语默认为1) || 
    682678 ||recTime ||int ||是 ||记录时间(时间戳)|| 
     
    688684        "message":"OK",                         //相关状态信息 
    689685        "download_record_data": 
    690            { 
     686        { 
    691687        //公共项 
     688        upload_category:                                // 数据类型 (1胎语  23成人心跳) 
    692689        recTime:                                        // 记录时间 
    693690        occurTime:                                      // 发生时间 
     
    702699        audioPath_fetalBeat:            // 胎心音频路径 
    703700 
    704 //成人心跳 
     701    //成人心跳 
    705702        avgRate_adultBeat:                      // 平均心率 
    706703        duration_adultBeat:                     // 时长 
     
    708705        beatTime_adultBeat:                     // 对应胎心数据的时间, 单位为秒 
    709706        tagTime_adultBeat:                      // 成人心跳时间 单位为秒 
    710  audioPath_adultBeat:           // 成人心跳音频路径 
    711  
     707    audioPath_adultBeat:                // 成人心跳音频路径 
     708    } 
    712709} 
    713 } 
    714710 
    715711}}} 
     
    730726  **请求参数:** 
    731727 ||参数名||类型||必须||说明|| 
    732  || common_session_id ||string ||是 ||用户id|| 
     728 || common_session_id ||string ||是 ||用户登录认证信息|| 
    733729 || pageNo ||int ||是 ||第几页|| 
    734730 || pageSize ||int ||是 ||(一页加载10条)|| 
     
    897893  **请求参数:** 
    898894 ||参数名||类型||必须||说明|| 
    899  || common_session_id||string  ||是 ||cookie里面传入,用户登录认证信息|| 
    900895 || pageNo ||int ||是 ||第几页|| 
    901896 || pageSize ||int ||是 ||(一页加载10条)||