方法名称
hotel.sr.v2.finddic
使用说明
通过该接口获取全部工单V2的类别/类型;
工单类别会发生变化,但频率不会很高;
输入参数
无
响应结果
| 节点 | 名称 | 类型 | 可为空 | 说明 |
|---|---|---|---|---|
| Dicts | 类别字典集合 | Dict | N | 类别字典集合,参考Dict节点 |
Dict节点
| 节点 | 名称 | 类型 | 可为空 | 说明 |
|---|---|---|---|---|
| Id | 字典ID | Integer | N | |
| ParentId | 父节点Id | Integer | N | |
| DicValue | 字典名称 | Int | N | |
| DicType | 字典类型 | Int | N | 该节点有:srtype (服务类型),srsubtype (服务子类型),srsubdetail (咨询细项)几种值 |
| Children | 子节点 | List<Dict> | Y |
输入示例
http://api-test.elong.com/rest?format=json
&data={"Version": "1.36", "Local": "zh_CN"}
&signature=094a8346c4459b98a443ffd723a094f0×tamp=1626158075&user={userId}&method=hotel.sr.v2.finddic输出参数示例
{
"Code": "0",
"Result": {
"Dicts": [
{
"Id": 3675,
"ParentId": -1,
"DicType": "srtype",
"DicValue": "酒店-订单信息",
"Children": [
{
"Id": 3677,
"ParentId": 3675,
"DicType": "srsubtype",
"DicValue": "酒店静态信息不符",
"Children": [
{
"Id": 3684,
"ParentId": 3677,
"DicType": "srsubdetail",
"DicValue": "房型基础信息不符"
},
{
"Id": 3683,
"ParentId": 3677,
"DicType": "srsubdetail",
"DicValue": "设施设备不符"
},
{
"Id": 3682,
"ParentId": 3677,
"DicType": "srsubdetail",
"DicValue": "酒店基础信息不符"
},
{
"Id": 3686,
"ParentId": 3677,
"DicType": "srsubdetail",
"DicValue": "酒店入住政策"
}
]
},
{
"Id": 3676,
"ParentId": 3675,
"DicType": "srsubtype",
"DicValue": "咨询订单信息",
"Children": [
{
"Id": 3680,
"ParentId": 3676,
"DicType": "srsubdetail",
"DicValue": "咨询订单信息"
},
{
"Id": 3681,
"ParentId": 3676,
"DicType": "srsubdetail",
"DicValue": "补发订单信息"
}
]
}
]
}
]
},
"Guid": "dsafdsaf"
}