🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
+++ post:v001/Login/edit *varchar:token#签名 *varchar:nickname#昵称 *varchar:section#部门 *varchar:duties#职务 *int:sex#性别0:请选择1:男2:女3:保密 varchar:path#图片路径 varchar:file#图片名称 <<< 请求成功 { "data": { "data": { "phone": "15811369200", "avatar": "http://train.img.livestaring.com/v002/User/2017/10/db76c77bb3f.jpg", "nickname": "新用户9200", "firm": "100000", "sex": 1, "type": 1, "section": "", "duties": "" }, "message": "资料修改成功" }, "code": 200, "time": 1505441278, "content": { "token": "DTRfbFswUjYJYg1qUGQDbgtjUGIIbQ==", "nickname":"测试账户1", "section":"人事部", "duties":"文员", "sex":1 } } <<< 登录超时 { "data": { "message": "登录超时、请重新登录" }, "code": 300, "time": 1666666666, "content": { "token": "DTRfbFswUjYJYg1qUGQDbgtjUGIIbQ==", "nickname":"测试账户1", "section":"人事部", "duties":"文员", "sex":1 } } <<< 验证失败 { "data": { "message": "token不能为空" }, "code": 400, "time": 1666666666, "content": { "token": "DTRfbFswUjYJYg1qUGQDbgtjUGIIbQ==", "nickname":"测试账户1", "section":"人事部", "duties":"文员", "sex":1 } } <<< 非法请求 { "data": { "message": "请求错误" }, "code": 500, "time": 1666666666, "content": { "token": "DTRfbFswUjYJYg1qUGQDbgtjUGIIbQ==", "nickname":"测试账户1", "section":"人事部", "duties":"文员", "sex":1 } } +++ #### 请求成功 data[]返回数据说明 | 字段名 | 描述 | 备注 | | --- | --- | --- | | message | 提示消息 | |