文档
测试

查询数据字典配置新闻资讯类型

GET
/api/common/datadict/getdata

接口描述

查询数据字典配置的广告位

请求参数

参数名
类型
描述
必填
typeno
String
数据字典分类编号,news-type--表示新闻资讯数据字典分类编号
必填

响应参数

参数名
类型
描述
必填
result
int
0--成功,其他--失败。示例:0
必填
data
array
数据列表
必填
typeno
string
数据字典分类编号。示例:adposition--表示广告位配置
可选
orderindex
int
排序号,越小优先级越高。示例:100
可选
text
string
key对应的描述。示例:首页轮播
可选
rid
int
tb_datadic表t的自增id
可选
remark1
string
备注
可选
key
string
值。示例:HomeSwipe
可选
msg
string
提示信息。示例:
必填

说明 / 示例

请求示例: `http://test.fanduola.com:8001/api/common/datadict/getdata?typeno=news-type&_=1626967967022` 返回示例: ``` { "result": 0, "data": [ { "typeno": "news-type", "orderindex": 100, "text": "产品动态", "rid": 242, "remark1": "", "key": "产品动态" }, { "typeno": "news-type", "orderindex": 100, "text": "最新活动", "rid": 246, "remark1": "", "key": "最新活动" } ], "msg": "" } ```