字典数据列表
GET
/system/dict/data/list请求参数
Query 参数
dictType
string
字典类型
示例值:
{% mock 'word' %}
dictLabel
string
数据标签
示例值:
{% mock 'ctitle' %}
status
string
可选
状态(0正常 1停用)
示例值:
{% mock 'pick' , 0,1 %}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
total
integer
必需
rows
array [object {11}]
必需
dictCode
string
编码ID
dictSort
integer
排序
dictLabel
string
标签名称
dictValue
string
标签值
dictType
string
字典类型
从字典类型列表中获取
tagClass
string
样式属性(样式扩展)
预设的class样式
tagType
string
标签类型(预设颜色)
预设数据固定项
status
string
状态
0停用 1正常
createBy
string
必需
createTime
string
必需
remark
string
备注
示例
{
"code": 200,
"msg": "成功",
"total": 3,
"rows": [
{
"dictCode": "1",
"dictSort": 1,
"dictLabel": "未知",
"dictValue": "0",
"dictType": "sys_user_sex",
"tagClass": "",
"tagType": "",
"status": "1",
"createBy": "maskAdmin",
"createTime": "1682264527109",
"remark": "性别男"
},
{
"dictCode": "2",
"dictSort": 2,
"dictLabel": "男",
"dictValue": "1",
"dictType": "sys_user_sex",
"tagClass": "",
"tagType": "",
"status": "1",
"createBy": "maskAdmin",
"createTime": "1682264527118",
"remark": "性别女"
},
{
"dictCode": "3",
"dictSort": 3,
"dictLabel": "女",
"dictValue": "2",
"dictType": "sys_user_sex",
"tagClass": "",
"tagType": "",
"status": "1",
"createBy": "maskAdmin",
"createTime": "1682264527126",
"remark": "性别未知"
}
]
}
修改于 1 年前