kclub

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

知识库API model

https://open.taobao.com/API.htm?docId=38771&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaKclubKcGetcategorytreeAPIResponse

type AlibabaKclubKcGetcategorytreeAPIResponse struct {
	model.CommonResponse
	AlibabaKclubKcGetcategorytreeResponse
}

知识云-查询租户下类目树 API返回值 alibaba.kclub.kc.getcategorytree

知识云-查询租户下类目树。通过租户id、类型(外部类目、帮助中心类目、内部类目)。

type AlibabaKclubKcGetcategorytreeRequest

type AlibabaKclubKcGetcategorytreeRequest struct {
	model.Params
	// contains filtered or unexported fields
}

知识云-查询租户下类目树 API请求 alibaba.kclub.kc.getcategorytree

知识云-查询租户下类目树。通过租户id、类型(外部类目、帮助中心类目、内部类目)。

func NewAlibabaKclubKcGetcategorytreeRequest

func NewAlibabaKclubKcGetcategorytreeRequest() *AlibabaKclubKcGetcategorytreeRequest

初始化AlibabaKclubKcGetcategorytreeRequest对象

func (AlibabaKclubKcGetcategorytreeRequest) GetApiMethodName

func (r AlibabaKclubKcGetcategorytreeRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaKclubKcGetcategorytreeRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaKclubKcGetcategorytreeRequest) GetAuth

Auth Getter

func (AlibabaKclubKcGetcategorytreeRequest) GetTenantId

TenantId Getter

func (*AlibabaKclubKcGetcategorytreeRequest) SetAuth

Auth Setter 鉴权参数

func (*AlibabaKclubKcGetcategorytreeRequest) SetTenantId

func (r *AlibabaKclubKcGetcategorytreeRequest) SetTenantId(tenantId int64) error

TenantId Setter 租户id

type AlibabaKclubKcGetcategorytreeResponse

type AlibabaKclubKcGetcategorytreeResponse 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"`
}

知识云-查询租户下类目树 成功返回结果

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 AlibabaKclubKcQaGetAPIResponse

type AlibabaKclubKcQaGetAPIResponse struct {
	model.CommonResponse
	AlibabaKclubKcQaGetResponse
}

知识云-查询单个知识详情 API返回值 alibaba.kclub.kc.qa.get

知识云-查询单个知识详情。通过租户id、问题id查询问题详情

type AlibabaKclubKcQaGetRequest

type AlibabaKclubKcQaGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

知识云-查询单个知识详情 API请求 alibaba.kclub.kc.qa.get

知识云-查询单个知识详情。通过租户id、问题id查询问题详情

func NewAlibabaKclubKcQaGetRequest

func NewAlibabaKclubKcQaGetRequest() *AlibabaKclubKcQaGetRequest

初始化AlibabaKclubKcQaGetRequest对象

func (AlibabaKclubKcQaGetRequest) GetApiMethodName

func (r AlibabaKclubKcQaGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaKclubKcQaGetRequest) GetApiParams

func (r AlibabaKclubKcQaGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaKclubKcQaGetRequest) GetAuth

Auth Getter

func (AlibabaKclubKcQaGetRequest) GetFilter

func (r AlibabaKclubKcQaGetRequest) GetFilter() *KcQaFilter

Filter Getter

func (AlibabaKclubKcQaGetRequest) GetQuestionId

func (r AlibabaKclubKcQaGetRequest) GetQuestionId() int64

QuestionId Getter

func (*AlibabaKclubKcQaGetRequest) SetAuth

func (r *AlibabaKclubKcQaGetRequest) SetAuth(auth *TenancyAuth) error

Auth Setter 鉴权

func (*AlibabaKclubKcQaGetRequest) SetFilter

func (r *AlibabaKclubKcQaGetRequest) SetFilter(filter *KcQaFilter) error

Filter Setter 过滤条件

func (*AlibabaKclubKcQaGetRequest) SetQuestionId

func (r *AlibabaKclubKcQaGetRequest) SetQuestionId(questionId int64) error

QuestionId Setter 问题id

type AlibabaKclubKcQaGetResponse

type AlibabaKclubKcQaGetResponse 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"`
}

知识云-查询单个知识详情 成功返回结果

type AlibabaKclubKcQaGetResult

type AlibabaKclubKcQaGetResult struct {
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回数据
	Data *KcQaRead `json:"data,omitempty" xml:"data,omitempty"`
	// 错误编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaKclubKcQaGetResult

type AlibabaKclubKcQaSearchAPIResponse

type AlibabaKclubKcQaSearchAPIResponse struct {
	model.CommonResponse
	AlibabaKclubKcQaSearchResponse
}

知识云-知识检索 API返回值 alibaba.kclub.kc.qa.search

知识云-知识搜索服务

type AlibabaKclubKcQaSearchPageAPIResponse

type AlibabaKclubKcQaSearchPageAPIResponse struct {
	model.CommonResponse
	AlibabaKclubKcQaSearchPageResponse
}

知识云-知识检索(分页) API返回值 alibaba.kclub.kc.qa.search.page

知识云-知识搜索服务

type AlibabaKclubKcQaSearchPageRequest

type AlibabaKclubKcQaSearchPageRequest struct {
	model.Params
	// contains filtered or unexported fields
}

知识云-知识检索(分页) API请求 alibaba.kclub.kc.qa.search.page

知识云-知识搜索服务

func NewAlibabaKclubKcQaSearchPageRequest

func NewAlibabaKclubKcQaSearchPageRequest() *AlibabaKclubKcQaSearchPageRequest

初始化AlibabaKclubKcQaSearchPageRequest对象

func (AlibabaKclubKcQaSearchPageRequest) GetApiMethodName

func (r AlibabaKclubKcQaSearchPageRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaKclubKcQaSearchPageRequest) GetApiParams

func (r AlibabaKclubKcQaSearchPageRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaKclubKcQaSearchPageRequest) GetAuth

Auth Getter

func (AlibabaKclubKcQaSearchPageRequest) GetQuery

Query Getter

func (*AlibabaKclubKcQaSearchPageRequest) SetAuth

Auth Setter 鉴权

func (*AlibabaKclubKcQaSearchPageRequest) SetQuery

Query Setter 查询参数

type AlibabaKclubKcQaSearchPageResponse

type AlibabaKclubKcQaSearchPageResponse 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"`
}

知识云-知识检索(分页) 成功返回结果

type AlibabaKclubKcQaSearchPageResult

type AlibabaKclubKcQaSearchPageResult struct {
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 错误编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 分页数据
	Data *Paging `json:"data,omitempty" xml:"data,omitempty"`
}

AlibabaKclubKcQaSearchPageResult

type AlibabaKclubKcQaSearchRequest

type AlibabaKclubKcQaSearchRequest struct {
	model.Params
	// contains filtered or unexported fields
}

知识云-知识检索 API请求 alibaba.kclub.kc.qa.search

知识云-知识搜索服务

func NewAlibabaKclubKcQaSearchRequest

func NewAlibabaKclubKcQaSearchRequest() *AlibabaKclubKcQaSearchRequest

初始化AlibabaKclubKcQaSearchRequest对象

func (AlibabaKclubKcQaSearchRequest) GetApiMethodName

func (r AlibabaKclubKcQaSearchRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaKclubKcQaSearchRequest) GetApiParams

func (r AlibabaKclubKcQaSearchRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaKclubKcQaSearchRequest) GetAuth

Auth Getter

func (AlibabaKclubKcQaSearchRequest) GetQuery

Query Getter

func (*AlibabaKclubKcQaSearchRequest) SetAuth

Auth Setter 鉴权

func (*AlibabaKclubKcQaSearchRequest) SetQuery

Query Setter 查询参数

type AlibabaKclubKcQaSearchResponse

type AlibabaKclubKcQaSearchResponse 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"`
}

知识云-知识检索 成功返回结果

type AlibabaKclubKcQaSearchResult

type AlibabaKclubKcQaSearchResult struct {
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回数据列表
	DataList []KcSearchQuestion `json:"data_list,omitempty" xml:"data_list>kc_search_question,omitempty"`
	// 错误编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaKclubKcQaSearchResult

type AlibabaKclubKcQueryknowledgeAPIResponse

type AlibabaKclubKcQueryknowledgeAPIResponse struct {
	model.CommonResponse
	AlibabaKclubKcQueryknowledgeResponse
}

知识云-通用知识查询服务 API返回值 alibaba.kclub.kc.queryknowledge

知识云-通用知识查询服务。通过租户id、类目id、知识类型、知识状态等条件查询类目。

type AlibabaKclubKcQueryknowledgeRequest

type AlibabaKclubKcQueryknowledgeRequest struct {
	model.Params
	// contains filtered or unexported fields
}

知识云-通用知识查询服务 API请求 alibaba.kclub.kc.queryknowledge

知识云-通用知识查询服务。通过租户id、类目id、知识类型、知识状态等条件查询类目。

func NewAlibabaKclubKcQueryknowledgeRequest

func NewAlibabaKclubKcQueryknowledgeRequest() *AlibabaKclubKcQueryknowledgeRequest

初始化AlibabaKclubKcQueryknowledgeRequest对象

func (AlibabaKclubKcQueryknowledgeRequest) GetApiMethodName

func (r AlibabaKclubKcQueryknowledgeRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaKclubKcQueryknowledgeRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaKclubKcQueryknowledgeRequest) GetAuth

Auth Getter

func (AlibabaKclubKcQueryknowledgeRequest) GetKcQaQuery

KcQaQuery Getter

func (*AlibabaKclubKcQueryknowledgeRequest) SetAuth

Auth Setter 鉴权

func (*AlibabaKclubKcQueryknowledgeRequest) SetKcQaQuery

func (r *AlibabaKclubKcQueryknowledgeRequest) SetKcQaQuery(kcQaQuery *KcQaQuery) error

KcQaQuery Setter 查询条件

type AlibabaKclubKcQueryknowledgeResponse

type AlibabaKclubKcQueryknowledgeResponse 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"`
}

知识云-通用知识查询服务 成功返回结果

type AlibabaKclubKcQueryknowledgeResult

type AlibabaKclubKcQueryknowledgeResult struct {
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回数据
	Data *Paging `json:"data,omitempty" xml:"data,omitempty"`
	// 错误编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaKclubKcQueryknowledgeResult

type KcQaFilter

type KcQaFilter struct {
	// 是否需要子知识
	NeedChildKnowledge bool `json:"need_child_knowledge,omitempty" xml:"need_child_knowledge,omitempty"`
	// 视角
	Views []int64 `json:"views,omitempty" xml:"views>int64,omitempty"`
	// 状态
	Statuses []int64 `json:"statuses,omitempty" xml:"statuses>int64,omitempty"`
}

KcQaFilter

type KcQaQuery

type KcQaQuery struct {
	// 租户id
	TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	// context列表
	ContextList []int64 `json:"context_list,omitempty" xml:"context_list>int64,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 问题类型列表
	QuestionTypes []int64 `json:"question_types,omitempty" xml:"question_types>int64,omitempty"`
	// context
	Context int64 `json:"context,omitempty" xml:"context,omitempty"`
	// 页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 状态列表
	StatusList []int64 `json:"status_list,omitempty" xml:"status_list>int64,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"`
	// 视角过滤
	Views []int64 `json:"views,omitempty" xml:"views>int64,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"`
	// 问题context
	Context int64 `json:"context,omitempty" xml:"context,omitempty"`
	// 问题类型
	QuestionType int64 `json:"question_type,omitempty" xml:"question_type,omitempty"`
	// 问题关联实体code
	EntityCode string `json:"entity_code,omitempty" xml:"entity_code,omitempty"`
	// 问题父类目列表
	ParentCats []int64 `json:"parent_cats,omitempty" xml:"parent_cats>int64,omitempty"`
	// 问题类目路径
	CatPath string `json:"cat_path,omitempty" xml:"cat_path,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"`
	// 问题标题
	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"`
	// 问题id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

KcQaRead

type KcQaReadDto

type KcQaReadDto struct {
	// 类目路径
	CatPath string `json:"cat_path,omitempty" xml:"cat_path,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"`
	// 知识标题
	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"`
	// 问题id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 子知识
	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"`
	// 问题类型(原kbs context)
	Context int64 `json:"context,omitempty" xml:"context,omitempty"`
	// 问题类型
	QuestionType int64 `json:"question_type,omitempty" xml:"question_type,omitempty"`
	// 关联的实体code
	EntityCode string `json:"entity_code,omitempty" xml:"entity_code,omitempty"`
	// 父类目id
	ParentCats []int64 `json:"parent_cats,omitempty" xml:"parent_cats>int64,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"`
	// 子知识答案视角
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 子知识答案额外内容
	ExtraContent string `json:"extra_content,omitempty" xml:"extra_content,omitempty"`
	// 子知识答案视角,逗号分隔
	ContentView string `json:"content_view,omitempty" xml:"content_view,omitempty"`
	// 子知识答案类型
	ContentType int64 `json:"content_type,omitempty" xml:"content_type,omitempty"`
	// 子知识答案
	Content string `json:"content,omitempty" xml:"content,omitempty"`
	// 子知识问题id
	QuestionId int64 `json:"question_id,omitempty" xml:"question_id,omitempty"`
	// 子知识答案编辑时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 子知识答案创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 子知识答案id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 子知识答案纯文本
	PlainText string `json:"plain_text,omitempty" xml:"plain_text,omitempty"`
}

KcQaSolution

type KcQaSolutionDto

type KcQaSolutionDto struct {
	// 子知识问题id
	QuestionId int64 `json:"question_id,omitempty" xml:"question_id,omitempty"`
	// 子知识编辑时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 子知识创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 子知识答案id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 子知识答案纯文本
	PlainText string `json:"plain_text,omitempty" xml:"plain_text,omitempty"`
	// 子知识答案摘要
	Summary string `json:"summary,omitempty" xml:"summary,omitempty"`
	// 子知识答案视角
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 子知识答案额外内容
	ExtraContent string `json:"extra_content,omitempty" xml:"extra_content,omitempty"`
	// 子知识答案内容视角
	ContentView string `json:"content_view,omitempty" xml:"content_view,omitempty"`
	// 子知识答案内容类型
	ContentType int64 `json:"content_type,omitempty" xml:"content_type,omitempty"`
	// 子知识答案富文本内容
	Content string `json:"content,omitempty" xml:"content,omitempty"`
}

KcQaSolutionDto

type KcSearchQuestion

type KcSearchQuestion struct {
	// 问题关联的实体code
	EntityCode string `json:"entity_code,omitempty" xml:"entity_code,omitempty"`
	// 问题类型
	QuestionType int64 `json:"question_type,omitempty" xml:"question_type,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"`
	// 租户id
	TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,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"`
	// 问题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"`
	// qa 失效时间
	EndDate string `json:"end_date,omitempty" xml:"end_date,omitempty"`
	// qa 生效时间
	StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"`
	// 类目id
	CatId int64 `json:"cat_id,omitempty" xml:"cat_id,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"`
	// 相似问题主键id
	SimilarId int64 `json:"similar_id,omitempty" xml:"similar_id,omitempty"`
	// catId 路径
	CatIdPathList []int64 `json:"cat_id_path_list,omitempty" xml:"cat_id_path_list>int64,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"`
}

KcSearchQuestion

type KcSearchQuestionDto

type KcSearchQuestionDto struct {
	// 生效时间
	StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"`
	// 类目id
	CatId int64 `json:"cat_id,omitempty" xml:"cat_id,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"`
	// 相似问题id
	SimilarId int64 `json:"similar_id,omitempty" xml:"similar_id,omitempty"`
	// 问题类型
	QuestionType int64 `json:"question_type,omitempty" xml:"question_type,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"`
	// 编辑人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"`
	// 分词
	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"`
	// 父类目列表
	CatIdPathList []int64 `json:"cat_id_path_list,omitempty" xml:"cat_id_path_list>int64,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"`
	// 索引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"`
	// 失效时间
	EndDate string `json:"end_date,omitempty" xml:"end_date,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 {
	// 租户id
	TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	// 租户列表
	TenantIdList []int64 `json:"tenant_id_list,omitempty" xml:"tenant_id_list>int64,omitempty"`
	// 搜索字段
	SearchString string `json:"search_string,omitempty" xml:"search_string,omitempty"`
	// 问题id
	KnowledgeId int64 `json:"knowledge_id,omitempty" xml:"knowledge_id,omitempty"`
	// 高亮显示
	Highlight bool `json:"highlight,omitempty" xml:"highlight,omitempty"`
	// 编辑人
	EditorId int64 `json:"editor_id,omitempty" xml:"editor_id,omitempty"`
	// 问题类型
	QuestionType int64 `json:"question_type,omitempty" xml:"question_type,omitempty"`
	// 是否需要返回内容
	NeedContent bool `json:"need_content,omitempty" xml:"need_content,omitempty"`
	// context列表
	ContextList []int64 `json:"context_list,omitempty" xml:"context_list>int64,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"`
	// 是否包含子类目
	IncludeSubCategorys bool `json:"include_sub_categorys,omitempty" xml:"include_sub_categorys,omitempty"`
	// 视角列表
	Views []int64 `json:"views,omitempty" xml:"views>int64,omitempty"`
	// 类目id列表
	CategoryIdList []int64 `json:"category_id_list,omitempty" xml:"category_id_list>int64,omitempty"`
	// 当前页
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 是否默认展示扩展标题
	DisplayExtTitle bool `json:"display_ext_title,omitempty" xml:"display_ext_title,omitempty"`
	// 排序规则
	SearchRule string `json:"search_rule,omitempty" xml:"search_rule,omitempty"`
	// 排序配置
	SorterConfig *SorterConfig `json:"sorter_config,omitempty" xml:"sorter_config,omitempty"`
}

KcSearchQuestionQuery

type Paging

type Paging struct {
	// 行数
	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"`
	// 数据
	DataList []KcSearchQuestionDto `json:"data_list,omitempty" xml:"data_list>kc_search_question_dto,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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL