You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
2 years ago
|
# 协议约定
|
||
|
>协议格式: restfull + json + utf-8
|
||
|
|
||
|
>协议格式中,凡是用 * 标识字段均为必须字段,否则为可选字段。
|
||
|
|
||
|
>密码:<font color=red>协议中涉及password字段全部使用16位的MD5加密传输(MD5加密后取后16位,大写)</font>
|
||
|
|
||
|
### 协议列表
|
||
|
```
|
||
|
* [协议约定](protocol.md)
|
||
|
* [修改记录](change.md)
|
||
|
* [基础协议](basic.md)
|
||
|
* [用户权限](user.md)
|
||
|
* [单位协议](vender.md)
|
||
|
```
|
||
|
|
||
|
### 响应示例
|
||
|
```
|
||
|
{
|
||
|
"body": {......}, //返回的业务数据
|
||
|
"code":*1, //结果码
|
||
|
"desc":*"成功", //结果描述
|
||
|
}
|
||
|
```
|
||
|
|
||
|
### 返回码表
|
||
|
```
|
||
|
基础返回码:
|
||
|
success (200, "成功"),
|
||
|
|
||
|
invalid_user_password (300, "用户名或者密码错误!"),
|
||
|
|
||
|
expired_vender (301, "账户过期,请联系管理员续费!"),
|
||
|
|
||
|
illegal_argument (400, "参数错误!"),
|
||
|
need_login (401, "未登录!"),
|
||
|
not_support_operate (404, "不支持的请求!"),
|
||
|
not_privileged (405, "无权限执行该操作!"),
|
||
|
system_error (500, "系统异常!"),
|
||
|
operate_failure (503, "操作失败!");
|
||
|
|
||
|
```
|