文档
测试

获取可用的数据字典分类配置

GET
/admin/baseinfo/datadict/api/getdirlist

接口描述

查询已启用的数据字典分类配置(enabled = 1)

请求头

参数名
类型
描述
必填
Cookie
String
必填

响应参数

参数名
类型
描述
必填
result
int
0--成功,其他--失败。示例:0
必填
data
array
数据列表
必填
typeno
string
数据字典分类编号。示例:adposition
必填
name
string
数据字典分类名称。示例:广告位置
必填
orderidx
int
排序。数字越小越往前展示。示例:10
必填
enabled
int
启用状态,0:未启用、1:已启用。示例:1
必填
msg
string
提示信息。示例:Success
必填

说明 / 示例

返回参数示例: ``` { "result": 0, "data": [ { "typeno": "adposition", "name": "广告位置", "orderidx": 10, "enabled": 1 }, { "typeno": "news-type", "name": "新闻类型", "orderidx": 20, "enabled": 1 }, { "typeno": "ShipNames", "name": "快递公司", "orderidx": 300, "enabled": 1 } ], "msg": "Success" } ```