4.查询自定义对话列表接入配置
### 接口路径:https://dev.lingju.ai/httpapi/findDialog.do
|名称|查询自定义对话列表API接口|
|-|-|
|接口路径|https://dev.lingju.ai/httpapi/findDialog.do|
|请求方式|post|
</br>
### http post请求示例:
~~~
post https://dev.lingju.ai/httpapi/findDialog.do
json格式串行化post上传,注意请求的header需添加 'Content-Type':'application/json;charset=UTF-8'
{
"appkey":"xxxxxxxxxxxxxxxxxxxxxx"
}
~~~
</br>
### 请求参数说明:
|参数|数据类型|可需|描述|
|-|-|-|-|
|appkey|String|必填|分配给开发者的专属appkey,请妥善保管
</br>
### 接口返回JSON示例:
~~~
{
"status": 0,
"data": [{
"name":"xxxxxx",
"question":"xxxxxx",
"response":"xxxxxx"
},
{
"name":"xxxxxx",
"question":"xxxxxx",
"response":"xxxxxx"
}]
}
~~~
</br>
### 接口返回说明:
~~~
Content-Type:application/json;charset=UTF-8
~~~
<table style="width:100%">
<thead>
<tr height="28" >
<th height="28" width="130px">参数</th>
<th width="100px">数据类型</th>
<th colspan="2">描述</th>
</tr>
</thead>
<tbody>
<tr height="23">
<td height="23" >status</td>
<td>int</td>
<td colspan="2">状态码,0=成功,其它值则为错误码,请参考错误码表</td>
</tr>
<tr >
<td rowspan="5" >data</td>
<td rowspan="5" >list</td>
<td colspan="2">自定义对话集合</td>
</tr>
<tr >
<td width="50px">name</td>
<td>对话名</td>
</tr>
<tr >
<td width="50px">question</td>
<td>问题</td>
</tr>
</tr>
<tr >
<td width="50px">response</td>
<td>回复</td>
</tr>
<tr>
<td width="50px">trainingState</td>
<td>当前训练状态:<br/>
0=等待训练;<br/>
1=正在训练;<br/>
2=训练完成;<br/>
3=训练失败</td>
</tr>
</tr>
</thead>
<tbody>
<tr height="23">
<td height="23" >description</td>
<td>String</td>
<td colspan="2">通常为空,出错时会有错误信息</td>
</tr>
</tbody></table>