知识云-通用知识查询服务。通过租户id、类目id、知识类型、知识状态等条件查询类目。
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| kc_qa_query | KcQaQuery | 可选 | 查询条件 | ||
|
|||||
| auth | TenancyAuth | 必须 | 鉴权 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | Result | 结果 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaKclubKcQueryknowledgeRequest req = new AlibabaKclubKcQueryknowledgeRequest();
AlibabaKclubKcQueryknowledgeRequest.KcQaQuery obj1 = new AlibabaKclubKcQueryknowledgeRequest.KcQaQuery();
obj1.setTenantId(1L);
obj1.setContextList(new Long[] { 1 };
);
obj1.setStatus(1L);
obj1.setQuestionTypes("1");
obj1.setContext(1L);
obj1.setPageSize(20L);
obj1.setStatusList("1");
obj1.setCatId(3L);
obj1.setCurrentPage(1L);
obj1.setQuestionType(1L);
AlibabaKclubKcQueryknowledgeRequest.SorterConfig obj2 = new AlibabaKclubKcQueryknowledgeRequest.SorterConfig();
obj2.setOrder("DECREASE");
obj2.setField("SEVEN_DAY_PV");
obj1.setSorterConfig(obj2);
obj1.setViews("1");
req.setKcQaQuery(obj1);
AlibabaKclubKcQueryknowledgeRequest.TenancyAuth obj3 = new AlibabaKclubKcQueryknowledgeRequest.TenancyAuth();
obj3.setSecretKey("d62ecfe5f779eac101832ee3bb491e4c");
obj3.setName("test");
req.setAuth(obj3);
AlibabaKclubKcQueryknowledgeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<alibaba_kclub_kc_queryknowledge_response>
<result>
<message></message>
<data>
<data_list>
<kc_qa_read_dto>
<cat_path></cat_path>
<cat_id></cat_id>
<tenant_id></tenant_id>
<status></status>
<title></title>
<gmt_modified></gmt_modified>
<gmt_create></gmt_create>
<id></id>
<child_qas>
<kc_qa_read_dto>
<solutions>
<kc_qa_solution_dto>
<question_id></question_id>
<gmt_modified></gmt_modified>
<gmt_create></gmt_create>
<id></id>
<plain_text></plain_text>
<summary></summary>
<type></type>
<extra_content></extra_content>
<content_view></content_view>
<content_type></content_type>
<content></content>
</kc_qa_solution_dto>
</solutions>
<context></context>
<question_type></question_type>
<entity_code></entity_code>
<parent_cats>
<number></number>
</parent_cats>
<cat_path></cat_path>
<cat_id></cat_id>
<tenant_id></tenant_id>
<status></status>
<title></title>
<gmt_modified></gmt_modified>
<gmt_create></gmt_create>
<id></id>
</kc_qa_read_dto>
</child_qas>
<solutions>
<kc_qa_solution_dto>
<content></content>
<question_id></question_id>
<gmt_modified></gmt_modified>
<gmt_create></gmt_create>
<id></id>
<plain_text></plain_text>
<summary></summary>
<type></type>
<extra_content></extra_content>
<content_view></content_view>
<content_type></content_type>
</kc_qa_solution_dto>
</solutions>
<context></context>
<question_type></question_type>
<entity_code></entity_code>
<parent_cats>
<number></number>
</parent_cats>
<qa_pv>
<ten_day_pv></ten_day_pv>
<seven_day_pv></seven_day_pv>
<five_day_pv></five_day_pv>
<three_day_pv></three_day_pv>
<one_day_pv></one_day_pv>
</qa_pv>
</kc_qa_read_dto>
</data_list>
<row_count></row_count>
<page_size></page_size>
<page_no></page_no>
</data>
<code></code>
<success>false</success>
</result>
</alibaba_kclub_kc_queryknowledge_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|