Documentation
¶
Overview ¶
Package kclub 包含知识库API相关结构体
Index ¶
- type AlibabaKclubKcGetcategorytreeAPIRequest
- func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetApiMethodName() string
- func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetAuth() *TenancyAuth
- func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetRawParams() model.Params
- func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetTenantId() int64
- func (r *AlibabaKclubKcGetcategorytreeAPIRequest) SetAuth(_auth *TenancyAuth) error
- func (r *AlibabaKclubKcGetcategorytreeAPIRequest) SetTenantId(_tenantId int64) error
- type AlibabaKclubKcGetcategorytreeAPIResponse
- type AlibabaKclubKcGetcategorytreeAPIResponseModel
- type AlibabaKclubKcGetcategorytreeResult
- type AlibabaKclubKcQaGetAPIRequest
- func (r AlibabaKclubKcQaGetAPIRequest) GetApiMethodName() string
- func (r AlibabaKclubKcQaGetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaKclubKcQaGetAPIRequest) GetAuth() *TenancyAuth
- func (r AlibabaKclubKcQaGetAPIRequest) GetFilter() *KcQaFilter
- func (r AlibabaKclubKcQaGetAPIRequest) GetQuestionId() int64
- func (r AlibabaKclubKcQaGetAPIRequest) GetRawParams() model.Params
- func (r *AlibabaKclubKcQaGetAPIRequest) SetAuth(_auth *TenancyAuth) error
- func (r *AlibabaKclubKcQaGetAPIRequest) SetFilter(_filter *KcQaFilter) error
- func (r *AlibabaKclubKcQaGetAPIRequest) SetQuestionId(_questionId int64) error
- type AlibabaKclubKcQaGetAPIResponse
- type AlibabaKclubKcQaGetAPIResponseModel
- type AlibabaKclubKcQaGetResult
- type AlibabaKclubKcQaSearchAPIRequest
- func (r AlibabaKclubKcQaSearchAPIRequest) GetApiMethodName() string
- func (r AlibabaKclubKcQaSearchAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaKclubKcQaSearchAPIRequest) GetAuth() *TenancyAuth
- func (r AlibabaKclubKcQaSearchAPIRequest) GetQuery() *KcSearchQuestionQuery
- func (r AlibabaKclubKcQaSearchAPIRequest) GetRawParams() model.Params
- func (r *AlibabaKclubKcQaSearchAPIRequest) SetAuth(_auth *TenancyAuth) error
- func (r *AlibabaKclubKcQaSearchAPIRequest) SetQuery(_query *KcSearchQuestionQuery) error
- type AlibabaKclubKcQaSearchAPIResponse
- type AlibabaKclubKcQaSearchAPIResponseModel
- type AlibabaKclubKcQaSearchPageAPIRequest
- func (r AlibabaKclubKcQaSearchPageAPIRequest) GetApiMethodName() string
- func (r AlibabaKclubKcQaSearchPageAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaKclubKcQaSearchPageAPIRequest) GetAuth() *TenancyAuth
- func (r AlibabaKclubKcQaSearchPageAPIRequest) GetQuery() *KcSearchQuestionQuery
- func (r AlibabaKclubKcQaSearchPageAPIRequest) GetRawParams() model.Params
- func (r *AlibabaKclubKcQaSearchPageAPIRequest) SetAuth(_auth *TenancyAuth) error
- func (r *AlibabaKclubKcQaSearchPageAPIRequest) SetQuery(_query *KcSearchQuestionQuery) error
- type AlibabaKclubKcQaSearchPageAPIResponse
- type AlibabaKclubKcQaSearchPageAPIResponseModel
- type AlibabaKclubKcQaSearchPageResult
- type AlibabaKclubKcQaSearchResult
- type AlibabaKclubKcQueryknowledgeAPIRequest
- func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetApiMethodName() string
- func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetAuth() *TenancyAuth
- func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetKcQaQuery() *KcQaQuery
- func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetRawParams() model.Params
- func (r *AlibabaKclubKcQueryknowledgeAPIRequest) SetAuth(_auth *TenancyAuth) error
- func (r *AlibabaKclubKcQueryknowledgeAPIRequest) SetKcQaQuery(_kcQaQuery *KcQaQuery) error
- type AlibabaKclubKcQueryknowledgeAPIResponse
- type AlibabaKclubKcQueryknowledgeAPIResponseModel
- type AlibabaKclubKcQueryknowledgeResult
- type KcQaFilter
- type KcQaQuery
- type KcQaRead
- type KcQaReadDto
- type KcQaSolution
- type KcQaSolutionDto
- type KcSearchQuestion
- type KcSearchQuestionDto
- type KcSearchQuestionQuery
- type Paging
- type QaPvDto
- type SorterConfig
- type TenancyAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaKclubKcGetcategorytreeAPIRequest ¶ added in v1.2.0
type AlibabaKclubKcGetcategorytreeAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaKclubKcGetcategorytreeAPIRequest 知识云-查询租户下类目树 API请求 alibaba.kclub.kc.getcategorytree
知识云-查询租户下类目树。通过租户id、类型(外部类目、帮助中心类目、内部类目)。
func NewAlibabaKclubKcGetcategorytreeRequest ¶
func NewAlibabaKclubKcGetcategorytreeRequest() *AlibabaKclubKcGetcategorytreeAPIRequest
NewAlibabaKclubKcGetcategorytreeRequest 初始化AlibabaKclubKcGetcategorytreeAPIRequest对象
func (AlibabaKclubKcGetcategorytreeAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaKclubKcGetcategorytreeAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaKclubKcGetcategorytreeAPIRequest) GetAuth ¶ added in v1.2.0
func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetAuth() *TenancyAuth
GetAuth Auth Getter
func (AlibabaKclubKcGetcategorytreeAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlibabaKclubKcGetcategorytreeAPIRequest) GetTenantId ¶ added in v1.2.0
func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetTenantId() int64
GetTenantId TenantId Getter
func (*AlibabaKclubKcGetcategorytreeAPIRequest) SetAuth ¶ added in v1.2.0
func (r *AlibabaKclubKcGetcategorytreeAPIRequest) SetAuth(_auth *TenancyAuth) error
SetAuth is Auth Setter 鉴权参数
func (*AlibabaKclubKcGetcategorytreeAPIRequest) SetTenantId ¶ added in v1.2.0
func (r *AlibabaKclubKcGetcategorytreeAPIRequest) SetTenantId(_tenantId int64) error
SetTenantId is TenantId Setter 租户id
type AlibabaKclubKcGetcategorytreeAPIResponse ¶
type AlibabaKclubKcGetcategorytreeAPIResponse struct { model.CommonResponse AlibabaKclubKcGetcategorytreeAPIResponseModel }
AlibabaKclubKcGetcategorytreeAPIResponse 知识云-查询租户下类目树 API返回值 alibaba.kclub.kc.getcategorytree
知识云-查询租户下类目树。通过租户id、类型(外部类目、帮助中心类目、内部类目)。
type AlibabaKclubKcGetcategorytreeAPIResponseModel ¶ added in v1.2.0
type AlibabaKclubKcGetcategorytreeAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_kclub_kc_getcategorytree_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // result Result *AlibabaKclubKcGetcategorytreeResult `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaKclubKcGetcategorytreeAPIResponseModel is 知识云-查询租户下类目树 成功返回结果
type AlibabaKclubKcGetcategorytreeResult ¶
type AlibabaKclubKcGetcategorytreeResult struct { // message Message string `json:"message,omitempty" xml:"message,omitempty"` // 类目数据 JSONArray Data string `json:"data,omitempty" xml:"data,omitempty"` // code Code string `json:"code,omitempty" xml:"code,omitempty"` // success Success bool `json:"success,omitempty" xml:"success,omitempty"` }
AlibabaKclubKcGetcategorytreeResult 结构体
type AlibabaKclubKcQaGetAPIRequest ¶ added in v1.2.0
type AlibabaKclubKcQaGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaKclubKcQaGetAPIRequest 知识云-查询单个知识详情 API请求 alibaba.kclub.kc.qa.get
知识云-查询单个知识详情。通过租户id、问题id查询问题详情
func NewAlibabaKclubKcQaGetRequest ¶
func NewAlibabaKclubKcQaGetRequest() *AlibabaKclubKcQaGetAPIRequest
NewAlibabaKclubKcQaGetRequest 初始化AlibabaKclubKcQaGetAPIRequest对象
func (AlibabaKclubKcQaGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaKclubKcQaGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaKclubKcQaGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaKclubKcQaGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaKclubKcQaGetAPIRequest) GetAuth ¶ added in v1.2.0
func (r AlibabaKclubKcQaGetAPIRequest) GetAuth() *TenancyAuth
GetAuth Auth Getter
func (AlibabaKclubKcQaGetAPIRequest) GetFilter ¶ added in v1.2.0
func (r AlibabaKclubKcQaGetAPIRequest) GetFilter() *KcQaFilter
GetFilter Filter Getter
func (AlibabaKclubKcQaGetAPIRequest) GetQuestionId ¶ added in v1.2.0
func (r AlibabaKclubKcQaGetAPIRequest) GetQuestionId() int64
GetQuestionId QuestionId Getter
func (AlibabaKclubKcQaGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaKclubKcQaGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaKclubKcQaGetAPIRequest) SetAuth ¶ added in v1.2.0
func (r *AlibabaKclubKcQaGetAPIRequest) SetAuth(_auth *TenancyAuth) error
SetAuth is Auth Setter 鉴权
func (*AlibabaKclubKcQaGetAPIRequest) SetFilter ¶ added in v1.2.0
func (r *AlibabaKclubKcQaGetAPIRequest) SetFilter(_filter *KcQaFilter) error
SetFilter is Filter Setter 过滤条件
func (*AlibabaKclubKcQaGetAPIRequest) SetQuestionId ¶ added in v1.2.0
func (r *AlibabaKclubKcQaGetAPIRequest) SetQuestionId(_questionId int64) error
SetQuestionId is QuestionId Setter 问题id
type AlibabaKclubKcQaGetAPIResponse ¶
type AlibabaKclubKcQaGetAPIResponse struct { model.CommonResponse AlibabaKclubKcQaGetAPIResponseModel }
AlibabaKclubKcQaGetAPIResponse 知识云-查询单个知识详情 API返回值 alibaba.kclub.kc.qa.get
知识云-查询单个知识详情。通过租户id、问题id查询问题详情
type AlibabaKclubKcQaGetAPIResponseModel ¶ added in v1.2.0
type AlibabaKclubKcQaGetAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_kclub_kc_qa_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回结果 Result *AlibabaKclubKcQaGetResult `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaKclubKcQaGetAPIResponseModel is 知识云-查询单个知识详情 成功返回结果
type AlibabaKclubKcQaGetResult ¶
type AlibabaKclubKcQaGetResult struct { // 错误信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 错误编码 Code string `json:"code,omitempty" xml:"code,omitempty"` // 返回数据 Data *KcQaRead `json:"data,omitempty" xml:"data,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
AlibabaKclubKcQaGetResult 结构体
type AlibabaKclubKcQaSearchAPIRequest ¶ added in v1.2.0
type AlibabaKclubKcQaSearchAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaKclubKcQaSearchAPIRequest 知识云-知识检索 API请求 alibaba.kclub.kc.qa.search
知识云-知识搜索服务
func NewAlibabaKclubKcQaSearchRequest ¶
func NewAlibabaKclubKcQaSearchRequest() *AlibabaKclubKcQaSearchAPIRequest
NewAlibabaKclubKcQaSearchRequest 初始化AlibabaKclubKcQaSearchAPIRequest对象
func (AlibabaKclubKcQaSearchAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaKclubKcQaSearchAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaKclubKcQaSearchAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaKclubKcQaSearchAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaKclubKcQaSearchAPIRequest) GetAuth ¶ added in v1.2.0
func (r AlibabaKclubKcQaSearchAPIRequest) GetAuth() *TenancyAuth
GetAuth Auth Getter
func (AlibabaKclubKcQaSearchAPIRequest) GetQuery ¶ added in v1.2.0
func (r AlibabaKclubKcQaSearchAPIRequest) GetQuery() *KcSearchQuestionQuery
GetQuery Query Getter
func (AlibabaKclubKcQaSearchAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaKclubKcQaSearchAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaKclubKcQaSearchAPIRequest) SetAuth ¶ added in v1.2.0
func (r *AlibabaKclubKcQaSearchAPIRequest) SetAuth(_auth *TenancyAuth) error
SetAuth is Auth Setter 鉴权
func (*AlibabaKclubKcQaSearchAPIRequest) SetQuery ¶ added in v1.2.0
func (r *AlibabaKclubKcQaSearchAPIRequest) SetQuery(_query *KcSearchQuestionQuery) error
SetQuery is Query Setter 查询参数
type AlibabaKclubKcQaSearchAPIResponse ¶
type AlibabaKclubKcQaSearchAPIResponse struct { model.CommonResponse AlibabaKclubKcQaSearchAPIResponseModel }
AlibabaKclubKcQaSearchAPIResponse 知识云-知识检索 API返回值 alibaba.kclub.kc.qa.search
知识云-知识搜索服务
type AlibabaKclubKcQaSearchAPIResponseModel ¶ added in v1.2.0
type AlibabaKclubKcQaSearchAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_kclub_kc_qa_search_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 搜索结果 Result *AlibabaKclubKcQaSearchResult `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaKclubKcQaSearchAPIResponseModel is 知识云-知识检索 成功返回结果
type AlibabaKclubKcQaSearchPageAPIRequest ¶ added in v1.2.0
type AlibabaKclubKcQaSearchPageAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaKclubKcQaSearchPageAPIRequest 知识云-知识检索(分页) API请求 alibaba.kclub.kc.qa.search.page
知识云-知识搜索服务
func NewAlibabaKclubKcQaSearchPageRequest ¶
func NewAlibabaKclubKcQaSearchPageRequest() *AlibabaKclubKcQaSearchPageAPIRequest
NewAlibabaKclubKcQaSearchPageRequest 初始化AlibabaKclubKcQaSearchPageAPIRequest对象
func (AlibabaKclubKcQaSearchPageAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaKclubKcQaSearchPageAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaKclubKcQaSearchPageAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaKclubKcQaSearchPageAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaKclubKcQaSearchPageAPIRequest) GetAuth ¶ added in v1.2.0
func (r AlibabaKclubKcQaSearchPageAPIRequest) GetAuth() *TenancyAuth
GetAuth Auth Getter
func (AlibabaKclubKcQaSearchPageAPIRequest) GetQuery ¶ added in v1.2.0
func (r AlibabaKclubKcQaSearchPageAPIRequest) GetQuery() *KcSearchQuestionQuery
GetQuery Query Getter
func (AlibabaKclubKcQaSearchPageAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaKclubKcQaSearchPageAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaKclubKcQaSearchPageAPIRequest) SetAuth ¶ added in v1.2.0
func (r *AlibabaKclubKcQaSearchPageAPIRequest) SetAuth(_auth *TenancyAuth) error
SetAuth is Auth Setter 鉴权
func (*AlibabaKclubKcQaSearchPageAPIRequest) SetQuery ¶ added in v1.2.0
func (r *AlibabaKclubKcQaSearchPageAPIRequest) SetQuery(_query *KcSearchQuestionQuery) error
SetQuery is Query Setter 查询参数
type AlibabaKclubKcQaSearchPageAPIResponse ¶
type AlibabaKclubKcQaSearchPageAPIResponse struct { model.CommonResponse AlibabaKclubKcQaSearchPageAPIResponseModel }
AlibabaKclubKcQaSearchPageAPIResponse 知识云-知识检索(分页) API返回值 alibaba.kclub.kc.qa.search.page
知识云-知识搜索服务
type AlibabaKclubKcQaSearchPageAPIResponseModel ¶ added in v1.2.0
type AlibabaKclubKcQaSearchPageAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_kclub_kc_qa_search_page_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回结果 Result *AlibabaKclubKcQaSearchPageResult `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaKclubKcQaSearchPageAPIResponseModel is 知识云-知识检索(分页) 成功返回结果
type AlibabaKclubKcQaSearchPageResult ¶
type AlibabaKclubKcQaSearchPageResult struct { // 错误编码 Code string `json:"code,omitempty" xml:"code,omitempty"` // 错误信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 分页数据 Data *Paging `json:"data,omitempty" xml:"data,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
AlibabaKclubKcQaSearchPageResult 结构体
type AlibabaKclubKcQaSearchResult ¶
type AlibabaKclubKcQaSearchResult struct { // 返回数据列表 DataList []KcSearchQuestion `json:"data_list,omitempty" xml:"data_list>kc_search_question,omitempty"` // 错误信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 错误编码 Code string `json:"code,omitempty" xml:"code,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
AlibabaKclubKcQaSearchResult 结构体
type AlibabaKclubKcQueryknowledgeAPIRequest ¶ added in v1.2.0
type AlibabaKclubKcQueryknowledgeAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaKclubKcQueryknowledgeAPIRequest 知识云-通用知识查询服务 API请求 alibaba.kclub.kc.queryknowledge
知识云-通用知识查询服务。通过租户id、类目id、知识类型、知识状态等条件查询类目。
func NewAlibabaKclubKcQueryknowledgeRequest ¶
func NewAlibabaKclubKcQueryknowledgeRequest() *AlibabaKclubKcQueryknowledgeAPIRequest
NewAlibabaKclubKcQueryknowledgeRequest 初始化AlibabaKclubKcQueryknowledgeAPIRequest对象
func (AlibabaKclubKcQueryknowledgeAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaKclubKcQueryknowledgeAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaKclubKcQueryknowledgeAPIRequest) GetAuth ¶ added in v1.2.0
func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetAuth() *TenancyAuth
GetAuth Auth Getter
func (AlibabaKclubKcQueryknowledgeAPIRequest) GetKcQaQuery ¶ added in v1.2.0
func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetKcQaQuery() *KcQaQuery
GetKcQaQuery KcQaQuery Getter
func (AlibabaKclubKcQueryknowledgeAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaKclubKcQueryknowledgeAPIRequest) SetAuth ¶ added in v1.2.0
func (r *AlibabaKclubKcQueryknowledgeAPIRequest) SetAuth(_auth *TenancyAuth) error
SetAuth is Auth Setter 鉴权
func (*AlibabaKclubKcQueryknowledgeAPIRequest) SetKcQaQuery ¶ added in v1.2.0
func (r *AlibabaKclubKcQueryknowledgeAPIRequest) SetKcQaQuery(_kcQaQuery *KcQaQuery) error
SetKcQaQuery is KcQaQuery Setter 查询条件
type AlibabaKclubKcQueryknowledgeAPIResponse ¶
type AlibabaKclubKcQueryknowledgeAPIResponse struct { model.CommonResponse AlibabaKclubKcQueryknowledgeAPIResponseModel }
AlibabaKclubKcQueryknowledgeAPIResponse 知识云-通用知识查询服务 API返回值 alibaba.kclub.kc.queryknowledge
知识云-通用知识查询服务。通过租户id、类目id、知识类型、知识状态等条件查询类目。
type AlibabaKclubKcQueryknowledgeAPIResponseModel ¶ added in v1.2.0
type AlibabaKclubKcQueryknowledgeAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_kclub_kc_queryknowledge_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 结果 Result *AlibabaKclubKcQueryknowledgeResult `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaKclubKcQueryknowledgeAPIResponseModel is 知识云-通用知识查询服务 成功返回结果
type AlibabaKclubKcQueryknowledgeResult ¶
type AlibabaKclubKcQueryknowledgeResult struct { // 错误信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 错误编码 Code string `json:"code,omitempty" xml:"code,omitempty"` // 返回数据 Data *Paging `json:"data,omitempty" xml:"data,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
AlibabaKclubKcQueryknowledgeResult 结构体
type KcQaFilter ¶
type KcQaFilter struct { // 视角 Views []string `json:"views,omitempty" xml:"views>string,omitempty"` // 状态 Statuses []string `json:"statuses,omitempty" xml:"statuses>string,omitempty"` // 是否需要子知识 NeedChildKnowledge bool `json:"need_child_knowledge,omitempty" xml:"need_child_knowledge,omitempty"` }
KcQaFilter 结构体
type KcQaQuery ¶
type KcQaQuery struct { // context列表 ContextList []int64 `json:"context_list,omitempty" xml:"context_list>int64,omitempty"` // 问题类型列表 QuestionTypes []string `json:"question_types,omitempty" xml:"question_types>string,omitempty"` // 状态列表 StatusList []string `json:"status_list,omitempty" xml:"status_list>string,omitempty"` // 视角过滤 Views []string `json:"views,omitempty" xml:"views>string,omitempty"` // 租户id TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"` // 状态 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // context Context int64 `json:"context,omitempty" xml:"context,omitempty"` // 页大小 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 类目id CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"` // 当前页 CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` // 问题类型 QuestionType int64 `json:"question_type,omitempty" xml:"question_type,omitempty"` // 排序对象 SorterConfig *SorterConfig `json:"sorter_config,omitempty" xml:"sorter_config,omitempty"` }
KcQaQuery 结构体
type KcQaRead ¶
type KcQaRead struct { // 子知识 ChildQas []KcQaRead `json:"child_qas,omitempty" xml:"child_qas>kc_qa_read,omitempty"` // 问题答案 Solutions []KcQaSolution `json:"solutions,omitempty" xml:"solutions>kc_qa_solution,omitempty"` // 问题父类目列表 ParentCats []int64 `json:"parent_cats,omitempty" xml:"parent_cats>int64,omitempty"` // 问题关联实体code EntityCode string `json:"entity_code,omitempty" xml:"entity_code,omitempty"` // 问题类目路径 CatPath string `json:"cat_path,omitempty" xml:"cat_path,omitempty"` // 问题标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 问题编辑时间 GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` // 问题创建时间 GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` // 问题context Context int64 `json:"context,omitempty" xml:"context,omitempty"` // 问题类型 QuestionType int64 `json:"question_type,omitempty" xml:"question_type,omitempty"` // 问题类目id CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"` // 问题租户id TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"` // 问题状态 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 问题id Id int64 `json:"id,omitempty" xml:"id,omitempty"` }
KcQaRead 结构体
type KcQaReadDto ¶
type KcQaReadDto struct { // 子知识 ChildQas []KcQaReadDto `json:"child_qas,omitempty" xml:"child_qas>kc_qa_read_dto,omitempty"` // 问题答案 Solutions []KcQaSolutionDto `json:"solutions,omitempty" xml:"solutions>kc_qa_solution_dto,omitempty"` // 父类目id ParentCats []int64 `json:"parent_cats,omitempty" xml:"parent_cats>int64,omitempty"` // 类目路径 CatPath string `json:"cat_path,omitempty" xml:"cat_path,omitempty"` // 知识标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 编辑时间 GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` // 创建时间 GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` // 关联的实体code EntityCode string `json:"entity_code,omitempty" xml:"entity_code,omitempty"` // 类目id CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"` // 租户id TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"` // 状态 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 问题id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 问题类型(原kbs context) Context int64 `json:"context,omitempty" xml:"context,omitempty"` // 问题类型 QuestionType int64 `json:"question_type,omitempty" xml:"question_type,omitempty"` // qa的访问量 QaPv *QaPvDto `json:"qa_pv,omitempty" xml:"qa_pv,omitempty"` }
KcQaReadDto 结构体
type KcQaSolution ¶
type KcQaSolution struct { // 子知识答案摘要 Summary string `json:"summary,omitempty" xml:"summary,omitempty"` // 子知识答案额外内容 ExtraContent string `json:"extra_content,omitempty" xml:"extra_content,omitempty"` // 子知识答案视角,逗号分隔 ContentView string `json:"content_view,omitempty" xml:"content_view,omitempty"` // 子知识答案 Content string `json:"content,omitempty" xml:"content,omitempty"` // 子知识答案编辑时间 GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` // 子知识答案创建时间 GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` // 子知识答案纯文本 PlainText string `json:"plain_text,omitempty" xml:"plain_text,omitempty"` // 子知识答案视角 Type int64 `json:"type,omitempty" xml:"type,omitempty"` // 子知识答案类型 ContentType int64 `json:"content_type,omitempty" xml:"content_type,omitempty"` // 子知识问题id QuestionId int64 `json:"question_id,omitempty" xml:"question_id,omitempty"` // 子知识答案id Id int64 `json:"id,omitempty" xml:"id,omitempty"` }
KcQaSolution 结构体
type KcQaSolutionDto ¶
type KcQaSolutionDto struct { // 子知识编辑时间 GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` // 子知识创建时间 GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` // 子知识答案纯文本 PlainText string `json:"plain_text,omitempty" xml:"plain_text,omitempty"` // 子知识答案摘要 Summary string `json:"summary,omitempty" xml:"summary,omitempty"` // 子知识答案额外内容 ExtraContent string `json:"extra_content,omitempty" xml:"extra_content,omitempty"` // 子知识答案内容视角 ContentView string `json:"content_view,omitempty" xml:"content_view,omitempty"` // 子知识答案富文本内容 Content string `json:"content,omitempty" xml:"content,omitempty"` // 子知识问题id QuestionId int64 `json:"question_id,omitempty" xml:"question_id,omitempty"` // 子知识答案id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 子知识答案视角 Type int64 `json:"type,omitempty" xml:"type,omitempty"` // 子知识答案内容类型 ContentType int64 `json:"content_type,omitempty" xml:"content_type,omitempty"` }
KcQaSolutionDto 结构体
type KcSearchQuestion ¶
type KcSearchQuestion struct { // catId 路径 CatIdPathList []int64 `json:"cat_id_path_list,omitempty" xml:"cat_id_path_list>int64,omitempty"` // 问题关联的实体code EntityCode string `json:"entity_code,omitempty" xml:"entity_code,omitempty"` // 编辑人名称 ModifiedUserName string `json:"modified_user_name,omitempty" xml:"modified_user_name,omitempty"` // 创建人名称 CreateUserName string `json:"create_user_name,omitempty" xml:"create_user_name,omitempty"` // 标题分词 TitleSegment string `json:"title_segment,omitempty" xml:"title_segment,omitempty"` // 标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 编辑时间 GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` // 创建时间 GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` // qa 失效时间 EndDate string `json:"end_date,omitempty" xml:"end_date,omitempty"` // qa 生效时间 StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"` // 额外字段 Ext string `json:"ext,omitempty" xml:"ext,omitempty"` // 类目名称 CatName string `json:"cat_name,omitempty" xml:"cat_name,omitempty"` // 类目路径 CatPathName string `json:"cat_path_name,omitempty" xml:"cat_path_name,omitempty"` // 记录唯一编码 Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"` // 得分 Score string `json:"score,omitempty" xml:"score,omitempty"` // 相似标题 SimilarTitle string `json:"similar_title,omitempty" xml:"similar_title,omitempty"` // 问题类型 QuestionType int64 `json:"question_type,omitempty" xml:"question_type,omitempty"` // 租户id TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"` // 状态 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 问题id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 问题类型:0-普通/1-引用 Type int64 `json:"type,omitempty" xml:"type,omitempty"` // 问题id QuestionId int64 `json:"question_id,omitempty" xml:"question_id,omitempty"` // 是否相似标题 IsSimilarTitle int64 `json:"is_similar_title,omitempty" xml:"is_similar_title,omitempty"` // 来源:草稿表-0/正式表-1 Source int64 `json:"source,omitempty" xml:"source,omitempty"` // 版本号 Version int64 `json:"version,omitempty" xml:"version,omitempty"` // 类目id CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"` // 相似问题主键id SimilarId int64 `json:"similar_id,omitempty" xml:"similar_id,omitempty"` }
KcSearchQuestion 结构体
type KcSearchQuestionDto ¶
type KcSearchQuestionDto struct { // 父类目列表 CatIdPathList []int64 `json:"cat_id_path_list,omitempty" xml:"cat_id_path_list>int64,omitempty"` // 生效时间 StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"` // 额外字段 Ext string `json:"ext,omitempty" xml:"ext,omitempty"` // 类目名称 CatName string `json:"cat_name,omitempty" xml:"cat_name,omitempty"` // 类目路径名称 CatPathName string `json:"cat_path_name,omitempty" xml:"cat_path_name,omitempty"` // 编辑人 ModifiedUserName string `json:"modified_user_name,omitempty" xml:"modified_user_name,omitempty"` // 创建人 CreateUserName string `json:"create_user_name,omitempty" xml:"create_user_name,omitempty"` // 分词 TitleSegment string `json:"title_segment,omitempty" xml:"title_segment,omitempty"` // 标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 编辑时间 GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` // 创建时间 GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` // 关联实体code EntityCode string `json:"entity_code,omitempty" xml:"entity_code,omitempty"` // 唯一编码 Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"` // 得分 Score string `json:"score,omitempty" xml:"score,omitempty"` // 相似问题标题 SimilarTitle string `json:"similar_title,omitempty" xml:"similar_title,omitempty"` // 失效时间 EndDate string `json:"end_date,omitempty" xml:"end_date,omitempty"` // 类目id CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"` // 相似问题id SimilarId int64 `json:"similar_id,omitempty" xml:"similar_id,omitempty"` // 问题类型 QuestionType int64 `json:"question_type,omitempty" xml:"question_type,omitempty"` // 编辑人id ModifiedUserId int64 `json:"modified_user_id,omitempty" xml:"modified_user_id,omitempty"` // 创建人id CreateUserId int64 `json:"create_user_id,omitempty" xml:"create_user_id,omitempty"` // 租户id TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"` // 状态 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 索引id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 索引类型 Type int64 `json:"type,omitempty" xml:"type,omitempty"` // 问题id QuestionId int64 `json:"question_id,omitempty" xml:"question_id,omitempty"` // 是否相似标题 IsSimilarTitle int64 `json:"is_similar_title,omitempty" xml:"is_similar_title,omitempty"` // 是否草稿版本 Source int64 `json:"source,omitempty" xml:"source,omitempty"` // 版本 Version int64 `json:"version,omitempty" xml:"version,omitempty"` // 十天访问pv TenDayPv int64 `json:"ten_day_pv,omitempty" xml:"ten_day_pv,omitempty"` // 7天访问pv SevenDayPv int64 `json:"seven_day_pv,omitempty" xml:"seven_day_pv,omitempty"` // 5天访问pv FiveDayPv int64 `json:"five_day_pv,omitempty" xml:"five_day_pv,omitempty"` // 3天访问pv ThreeDayPv int64 `json:"three_day_pv,omitempty" xml:"three_day_pv,omitempty"` // 1天访问pv OneDayPv int64 `json:"one_day_pv,omitempty" xml:"one_day_pv,omitempty"` }
KcSearchQuestionDto 结构体
type KcSearchQuestionQuery ¶
type KcSearchQuestionQuery struct { // 租户列表 TenantIdList []int64 `json:"tenant_id_list,omitempty" xml:"tenant_id_list>int64,omitempty"` // context列表 ContextList []int64 `json:"context_list,omitempty" xml:"context_list>int64,omitempty"` // 视角列表 Views []string `json:"views,omitempty" xml:"views>string,omitempty"` // 类目id列表 CategoryIdList []int64 `json:"category_id_list,omitempty" xml:"category_id_list>int64,omitempty"` // 搜索字段 SearchString string `json:"search_string,omitempty" xml:"search_string,omitempty"` // 排序规则 SearchRule string `json:"search_rule,omitempty" xml:"search_rule,omitempty"` // 租户id TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"` // 问题id KnowledgeId int64 `json:"knowledge_id,omitempty" xml:"knowledge_id,omitempty"` // 编辑人 EditorId int64 `json:"editor_id,omitempty" xml:"editor_id,omitempty"` // 问题类型 QuestionType int64 `json:"question_type,omitempty" xml:"question_type,omitempty"` // 状态 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 分页大小 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 创建者id CreatorId int64 `json:"creator_id,omitempty" xml:"creator_id,omitempty"` // 当前页 CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` // 排序配置 SorterConfig *SorterConfig `json:"sorter_config,omitempty" xml:"sorter_config,omitempty"` // 高亮显示 Highlight bool `json:"highlight,omitempty" xml:"highlight,omitempty"` // 是否需要返回内容 NeedContent bool `json:"need_content,omitempty" xml:"need_content,omitempty"` // 是否包含子类目 IncludeSubCategorys bool `json:"include_sub_categorys,omitempty" xml:"include_sub_categorys,omitempty"` // 是否默认展示扩展标题 DisplayExtTitle bool `json:"display_ext_title,omitempty" xml:"display_ext_title,omitempty"` }
KcSearchQuestionQuery 结构体
type Paging ¶
type Paging struct { // 数据 DataList []KcSearchQuestionDto `json:"data_list,omitempty" xml:"data_list>kc_search_question_dto,omitempty"` // 行数 RowCount int64 `json:"row_count,omitempty" xml:"row_count,omitempty"` // 每页大小 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 当前页 PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"` }
Paging 结构体
type QaPvDto ¶
type QaPvDto struct { // 十天访问量 TenDayPv int64 `json:"ten_day_pv,omitempty" xml:"ten_day_pv,omitempty"` // 7天访问量 SevenDayPv int64 `json:"seven_day_pv,omitempty" xml:"seven_day_pv,omitempty"` // 5天访问量 FiveDayPv int64 `json:"five_day_pv,omitempty" xml:"five_day_pv,omitempty"` // 3天访问量 ThreeDayPv int64 `json:"three_day_pv,omitempty" xml:"three_day_pv,omitempty"` // 1天访问量 OneDayPv int64 `json:"one_day_pv,omitempty" xml:"one_day_pv,omitempty"` }
QaPvDto 结构体
type SorterConfig ¶
type SorterConfig struct { // 排序顺序 Order string `json:"order,omitempty" xml:"order,omitempty"` // 排序字段 Field string `json:"field,omitempty" xml:"field,omitempty"` }
SorterConfig 结构体
type TenancyAuth ¶
type TenancyAuth struct { // 鉴权秘钥 SecretKey string `json:"secret_key,omitempty" xml:"secret_key,omitempty"` // 鉴权应用名称 Name string `json:"name,omitempty" xml:"name,omitempty"` }
TenancyAuth 结构体
Source Files
¶
- AlibabaKclubKcGetcategorytreeAPIRequest.go
- AlibabaKclubKcGetcategorytreeAPIResponse.go
- AlibabaKclubKcGetcategorytreeResult.go
- AlibabaKclubKcQaGetAPIRequest.go
- AlibabaKclubKcQaGetAPIResponse.go
- AlibabaKclubKcQaGetResult.go
- AlibabaKclubKcQaSearchAPIRequest.go
- AlibabaKclubKcQaSearchAPIResponse.go
- AlibabaKclubKcQaSearchPageAPIRequest.go
- AlibabaKclubKcQaSearchPageAPIResponse.go
- AlibabaKclubKcQaSearchPageResult.go
- AlibabaKclubKcQaSearchResult.go
- AlibabaKclubKcQueryknowledgeAPIRequest.go
- AlibabaKclubKcQueryknowledgeAPIResponse.go
- AlibabaKclubKcQueryknowledgeResult.go
- KcQaFilter.go
- KcQaQuery.go
- KcQaRead.go
- KcQaReadDto.go
- KcQaSolution.go
- KcQaSolutionDto.go
- KcSearchQuestion.go
- KcSearchQuestionDto.go
- KcSearchQuestionQuery.go
- Paging.go
- QaPvDto.go
- SorterConfig.go
- TenancyAuth.go
- doc.go