lipengjava

get doc server url

  1 +/**
  2 + * @api {post} /3m/meeting/get_document_url.do 21.获取文档服务器地址
  3 + * @apiName get_document_url
  4 + * @apiGroup doc
  5 + * @apiVersion 1.6.0
  6 + * @apiDescription 获取文档服务器地址,用于后续的上传操作
  7 + *
  8 + * @apiParam {String} siteId 站点标识
  9 + * @apiParam {Long} timestamp 时间戳
  10 + * @apiParam {String} authId MD5(key+siteId+timestamp), 其中 key 为与系统约定的加密 key
  11 + *
  12 + * @apiParamExample {xml} 请求示例
  13 + <?xml version="1.0" encoding="UTF-8"?>
  14 + <param>
  15 + <siteId>shanghai</siteId>
  16 + <timestamp>1392032123210</timestamp>
  17 + <authId>4297f44b13955235245b2497399d7a93</authId>
  18 + </param>
  19 + *
  20 + * @apiSuccess {int} errorCode
  21 + * 0:正常 <br/>
  22 + * 1:siteId 错误 <br/>
  23 + * 2:站点未到生效日期 <br/>
  24 + * 3:站点过期 <br/>
  25 + * 4:authId 错误 <br/>
  26 + * 5:authId 不能重复使用 <br/>
  27 + * 6:timestamp 超时 <br/>
  28 + * 10:报文格式错误 <br/>
  29 + * @apiSuccess {Array} docList
  30 + * @apiSuccess {Object} docList.docServer
  31 + * @apiSuccess {String} docList.docServer.serverAddress 地址:端口
  32 + * @apiSuccess {int} docList.docServer.count 当前等待人数
  33 + *
  34 + * @apiSuccessExample {xml} 返回示例
  35 + &lt;?xml version=“1.0” encoding="UTF-8"?&gt;
  36 + &lt;result&gt;
  37 + &lt;errorCode&gt;0&lt;/errorCode&gt;
  38 + &lt;doclist&gt;
  39 + &lt;docServer&gt;
  40 + &lt;serverAddress&gt;127.0.0.1:8080&lt;/serverAddress&gt;
  41 + &lt;count&gt;0&lt;/count&gt;
  42 + &lt;/docServer&gt;
  43 + &lt;/doclist&gt;
  44 + &lt;/result&gt;
  45 + *
  46 + */