Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

公司里接口编写规范:

返回值的规范:

{
    "code":200,
    "msg": "",
    "data":{
        "name":'xxx',
        "age":'xxx'
    }
}

状态码的规范:

  1. 200:成功。
  2. 401:没有授权。
  3. 400:参数错误。
  4. 500:服务器错误。