1、系统服务请求响应,采用Restful/JSON 格式报文传输;
2、前端接收响应信息统一格式如下:
2-1. 返回非列表对象时:
| 字段名 | 字段类型 | 字段描述 | 备注 |
|---|---|---|---|
| data | Object | 返回对象信息 | |
| code | Integer | 服务标识码 | |
| message | String | 服务描述信息 |
2-2. 返回是列表对象时:
| 字段名 | 字段类型 | 字段描述 | 备注 |
|---|---|---|---|
| data | |||
| dataList | List | 返回对象列表 | |
| … | Object属性信息 | ||
| code | Integer | 服务标识码 | |
| message | String | 服务描述信息 |
2-3. 返回是分页列表对象时:
| 字段名 | 字段类型 | 字段描述 | 备注 |
|---|---|---|---|
| data | |||
| dataList | List | 返回对象列表 | |
| … | Object属性信息 | ||
| pageInfo | |||
| total | Long | 数据总数 | |
| pageSize | Integer | 每页展示条目数 | |
| pageIndex | Integer | 页码 | |
| count | Integer | 当前列表数据总数 | |
| code | Integer | 服务标识码 | |
| message | String | 服务描述信息 |
