获取字典数据
[TOC]
简要描述
- 根据字典key获取字典表属性值
请求URL
http://ip:port/sysdict/queryDictByType
请求方式
- POST
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
type | 是 | string | 对应的key |
返回示例
{
"code": 20000,
"data": [
{
"value": "2",
"label": "固定电话"
},
{
"value": "4",
"label": "移动电话"
}
]
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
code | int | 20000 成功 其余失败 |
data | arr[obj] | 字典项 |
备注
- 更多返回错误代码请看首页的错误代码描述