Changes between Version 54 and Version 55 of baby2.2_developers/interface


Ignore:
Timestamp:
03/27/2015 03:00:29 PM (11 years ago)
Author:
chenziyang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • baby2.2_developers/interface

    v54 v55  
    2424   
    2525  8.涉及接口都增加请求参数:v = 220  //版本号(数字) 
     26 
     27  9.发帖,回帖中status字段值的含义如下: 
     28 
     29        STATUS_ERROR = -1;                              //错误 
     30        STATUS_SUCCESS = 0;                             //成功 
     31        STATUS_NO_RIGHT = 1;                            //没有权限 
     32        STATUS_PARAM_WRONG = 2;                         //参数错误 
     33        STATUS_CONTENT_OVERFLOW = 3;                    //内容超出长度 
     34        STATUS_EXISTS = 4;                              //数据已经存在 
     35        STATUS_NOT_FOUND = 5;                           //数据查找不到 
     36        STATUS_NO_LOGIN = 6;                            //没有登录 
     37        STATUS_USER_LOCK = 7;                           //用户被锁 
     38 
     39        当status不等于0时,具体原因参照message字段的说明。 
    2640}}} 
    2741 
     
    560574  发帖成功,返回HTTP响应头为201,即内容创建成功 
    561575  { 
    562      "Location": "http://bbs.pcbaby.com.cn/post-2156187_39095567.html" 
     576     "Location": "http://bbs.pcbaby.com.cn/post-2156187_39095567.html", 
     577     "status":0 
    563578  } 
    564579 
    565580  私密圈返回参数(新增) 
    566581  { 
     582    "status":-1, 
    567583    "message": "此贴太火爆,快去其他帖子参与互动吧"  //提示信息 
    568584  } 
     
    595611  "goldCount": 1, //发帖获得金币数量 
    596612  "hasGold": true //发帖是否获得金币 
     613  "status":0 
    597614} 
    598615}}}