knowledgebase_doc_service

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KnowledgeBaseDocService_GetDocList_FullMethodName              = "/knowledgebase_doc_service.KnowledgeBaseDocService/GetDocList"
	KnowledgeBaseDocService_ImportDoc_FullMethodName               = "/knowledgebase_doc_service.KnowledgeBaseDocService/ImportDoc"
	KnowledgeBaseDocService_UpdateDocStatus_FullMethodName         = "/knowledgebase_doc_service.KnowledgeBaseDocService/UpdateDocStatus"
	KnowledgeBaseDocService_InitDocStatus_FullMethodName           = "/knowledgebase_doc_service.KnowledgeBaseDocService/InitDocStatus"
	KnowledgeBaseDocService_DeleteDoc_FullMethodName               = "/knowledgebase_doc_service.KnowledgeBaseDocService/DeleteDoc"
	KnowledgeBaseDocService_GetDocCategoryUploadTip_FullMethodName = "/knowledgebase_doc_service.KnowledgeBaseDocService/GetDocCategoryUploadTip"
	KnowledgeBaseDocService_GetDocSegmentList_FullMethodName       = "/knowledgebase_doc_service.KnowledgeBaseDocService/GetDocSegmentList"
	KnowledgeBaseDocService_UpdateDocSegmentStatus_FullMethodName  = "/knowledgebase_doc_service.KnowledgeBaseDocService/UpdateDocSegmentStatus"
	KnowledgeBaseDocService_AnalysisDocUrl_FullMethodName          = "/knowledgebase_doc_service.KnowledgeBaseDocService/AnalysisDocUrl"
)

Variables

View Source
var File_proto_knowledgebase_doc_service_knowledgebase_doc_service_proto protoreflect.FileDescriptor
View Source
var KnowledgeBaseDocService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "knowledgebase_doc_service.KnowledgeBaseDocService",
	HandlerType: (*KnowledgeBaseDocServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDocList",
			Handler:    _KnowledgeBaseDocService_GetDocList_Handler,
		},
		{
			MethodName: "ImportDoc",
			Handler:    _KnowledgeBaseDocService_ImportDoc_Handler,
		},
		{
			MethodName: "UpdateDocStatus",
			Handler:    _KnowledgeBaseDocService_UpdateDocStatus_Handler,
		},
		{
			MethodName: "InitDocStatus",
			Handler:    _KnowledgeBaseDocService_InitDocStatus_Handler,
		},
		{
			MethodName: "DeleteDoc",
			Handler:    _KnowledgeBaseDocService_DeleteDoc_Handler,
		},
		{
			MethodName: "GetDocCategoryUploadTip",
			Handler:    _KnowledgeBaseDocService_GetDocCategoryUploadTip_Handler,
		},
		{
			MethodName: "GetDocSegmentList",
			Handler:    _KnowledgeBaseDocService_GetDocSegmentList_Handler,
		},
		{
			MethodName: "UpdateDocSegmentStatus",
			Handler:    _KnowledgeBaseDocService_UpdateDocSegmentStatus_Handler,
		},
		{
			MethodName: "AnalysisDocUrl",
			Handler:    _KnowledgeBaseDocService_AnalysisDocUrl_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/knowledgebase-doc-service/knowledgebase-doc-service.proto",
}

KnowledgeBaseDocService_ServiceDesc is the grpc.ServiceDesc for KnowledgeBaseDocService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKnowledgeBaseDocServiceServer

func RegisterKnowledgeBaseDocServiceServer(s grpc.ServiceRegistrar, srv KnowledgeBaseDocServiceServer)

Types

type AnalysisUrlDocReq

type AnalysisUrlDocReq struct {
	UserId      string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId       string   `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	KnowledgeId string   `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	UrlList     []string `protobuf:"bytes,4,rep,name=urlList,proto3" json:"urlList,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalysisUrlDocReq) Descriptor deprecated

func (*AnalysisUrlDocReq) Descriptor() ([]byte, []int)

Deprecated: Use AnalysisUrlDocReq.ProtoReflect.Descriptor instead.

func (*AnalysisUrlDocReq) GetKnowledgeId

func (x *AnalysisUrlDocReq) GetKnowledgeId() string

func (*AnalysisUrlDocReq) GetOrgId

func (x *AnalysisUrlDocReq) GetOrgId() string

func (*AnalysisUrlDocReq) GetUrlList

func (x *AnalysisUrlDocReq) GetUrlList() []string

func (*AnalysisUrlDocReq) GetUserId

func (x *AnalysisUrlDocReq) GetUserId() string

func (*AnalysisUrlDocReq) ProtoMessage

func (*AnalysisUrlDocReq) ProtoMessage()

func (*AnalysisUrlDocReq) ProtoReflect

func (x *AnalysisUrlDocReq) ProtoReflect() protoreflect.Message

func (*AnalysisUrlDocReq) Reset

func (x *AnalysisUrlDocReq) Reset()

func (*AnalysisUrlDocReq) String

func (x *AnalysisUrlDocReq) String() string

type AnalysisUrlDocResp

type AnalysisUrlDocResp struct {
	UrlList []*UrlInfo `protobuf:"bytes,1,rep,name=urlList,proto3" json:"urlList,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalysisUrlDocResp) Descriptor deprecated

func (*AnalysisUrlDocResp) Descriptor() ([]byte, []int)

Deprecated: Use AnalysisUrlDocResp.ProtoReflect.Descriptor instead.

func (*AnalysisUrlDocResp) GetUrlList

func (x *AnalysisUrlDocResp) GetUrlList() []*UrlInfo

func (*AnalysisUrlDocResp) ProtoMessage

func (*AnalysisUrlDocResp) ProtoMessage()

func (*AnalysisUrlDocResp) ProtoReflect

func (x *AnalysisUrlDocResp) ProtoReflect() protoreflect.Message

func (*AnalysisUrlDocResp) Reset

func (x *AnalysisUrlDocResp) Reset()

func (*AnalysisUrlDocResp) String

func (x *AnalysisUrlDocResp) String() string

type DeleteDocReq

type DeleteDocReq struct {
	Ids    []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	UserId string   `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId  string   `protobuf:"bytes,3,opt,name=orgId,proto3" json:"orgId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDocReq) Descriptor deprecated

func (*DeleteDocReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDocReq.ProtoReflect.Descriptor instead.

func (*DeleteDocReq) GetIds

func (x *DeleteDocReq) GetIds() []string

func (*DeleteDocReq) GetOrgId

func (x *DeleteDocReq) GetOrgId() string

func (*DeleteDocReq) GetUserId

func (x *DeleteDocReq) GetUserId() string

func (*DeleteDocReq) ProtoMessage

func (*DeleteDocReq) ProtoMessage()

func (*DeleteDocReq) ProtoReflect

func (x *DeleteDocReq) ProtoReflect() protoreflect.Message

func (*DeleteDocReq) Reset

func (x *DeleteDocReq) Reset()

func (*DeleteDocReq) String

func (x *DeleteDocReq) String() string

type DocFileInfo

type DocFileInfo struct {
	DocName string `protobuf:"bytes,1,opt,name=docName,proto3" json:"docName,omitempty"`  //文档名称
	DocUrl  string `protobuf:"bytes,2,opt,name=docUrl,proto3" json:"docUrl,omitempty"`    //文档url
	DocType string `protobuf:"bytes,3,opt,name=docType,proto3" json:"docType,omitempty"`  // 文档类型
	DocId   string `protobuf:"bytes,4,opt,name=docId,proto3" json:"docId,omitempty"`      //文档id
	DocSize int64  `protobuf:"varint,5,opt,name=docSize,proto3" json:"docSize,omitempty"` //文档大小
	// contains filtered or unexported fields
}

func (*DocFileInfo) Descriptor deprecated

func (*DocFileInfo) Descriptor() ([]byte, []int)

Deprecated: Use DocFileInfo.ProtoReflect.Descriptor instead.

func (*DocFileInfo) GetDocId

func (x *DocFileInfo) GetDocId() string

func (*DocFileInfo) GetDocName

func (x *DocFileInfo) GetDocName() string

func (*DocFileInfo) GetDocSize

func (x *DocFileInfo) GetDocSize() int64

func (*DocFileInfo) GetDocType

func (x *DocFileInfo) GetDocType() string

func (*DocFileInfo) GetDocUrl

func (x *DocFileInfo) GetDocUrl() string

func (*DocFileInfo) ProtoMessage

func (*DocFileInfo) ProtoMessage()

func (*DocFileInfo) ProtoReflect

func (x *DocFileInfo) ProtoReflect() protoreflect.Message

func (*DocFileInfo) Reset

func (x *DocFileInfo) Reset()

func (*DocFileInfo) String

func (x *DocFileInfo) String() string

type DocImportTipReq

type DocImportTipReq struct {
	UserId      string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId       string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	// contains filtered or unexported fields
}

func (*DocImportTipReq) Descriptor deprecated

func (*DocImportTipReq) Descriptor() ([]byte, []int)

Deprecated: Use DocImportTipReq.ProtoReflect.Descriptor instead.

func (*DocImportTipReq) GetKnowledgeId

func (x *DocImportTipReq) GetKnowledgeId() string

func (*DocImportTipReq) GetOrgId

func (x *DocImportTipReq) GetOrgId() string

func (*DocImportTipReq) GetUserId

func (x *DocImportTipReq) GetUserId() string

func (*DocImportTipReq) ProtoMessage

func (*DocImportTipReq) ProtoMessage()

func (*DocImportTipReq) ProtoReflect

func (x *DocImportTipReq) ProtoReflect() protoreflect.Message

func (*DocImportTipReq) Reset

func (x *DocImportTipReq) Reset()

func (*DocImportTipReq) String

func (x *DocImportTipReq) String() string

type DocImportTipResp

type DocImportTipResp struct {
	KnowledgeName string `protobuf:"bytes,1,opt,name=knowledgeName,proto3" json:"knowledgeName,omitempty"`
	KnowledgeId   string `protobuf:"bytes,2,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	Message       string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	UploadStatus  int32  `protobuf:"varint,4,opt,name=uploadStatus,proto3" json:"uploadStatus,omitempty"`
	// contains filtered or unexported fields
}

func (*DocImportTipResp) Descriptor deprecated

func (*DocImportTipResp) Descriptor() ([]byte, []int)

Deprecated: Use DocImportTipResp.ProtoReflect.Descriptor instead.

func (*DocImportTipResp) GetKnowledgeId

func (x *DocImportTipResp) GetKnowledgeId() string

func (*DocImportTipResp) GetKnowledgeName

func (x *DocImportTipResp) GetKnowledgeName() string

func (*DocImportTipResp) GetMessage

func (x *DocImportTipResp) GetMessage() string

func (*DocImportTipResp) GetUploadStatus

func (x *DocImportTipResp) GetUploadStatus() int32

func (*DocImportTipResp) ProtoMessage

func (*DocImportTipResp) ProtoMessage()

func (*DocImportTipResp) ProtoReflect

func (x *DocImportTipResp) ProtoReflect() protoreflect.Message

func (*DocImportTipResp) Reset

func (x *DocImportTipResp) Reset()

func (*DocImportTipResp) String

func (x *DocImportTipResp) String() string

type DocInfo

type DocInfo struct {
	DocId       string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"`
	DocName     string `protobuf:"bytes,2,opt,name=docName,proto3" json:"docName,omitempty"`
	DocSize     int64  `protobuf:"varint,3,opt,name=docSize,proto3" json:"docSize,omitempty"`
	DocType     string `protobuf:"bytes,4,opt,name=docType,proto3" json:"docType,omitempty"` //文档名称
	KnowledgeId string `protobuf:"bytes,5,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	UploadTime  string `protobuf:"bytes,6,opt,name=uploadTime,proto3" json:"uploadTime,omitempty"`
	Status      int32  `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
	ErrorMsg    string `protobuf:"bytes,8,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*DocInfo) Descriptor deprecated

func (*DocInfo) Descriptor() ([]byte, []int)

Deprecated: Use DocInfo.ProtoReflect.Descriptor instead.

func (*DocInfo) GetDocId

func (x *DocInfo) GetDocId() string

func (*DocInfo) GetDocName

func (x *DocInfo) GetDocName() string

func (*DocInfo) GetDocSize

func (x *DocInfo) GetDocSize() int64

func (*DocInfo) GetDocType

func (x *DocInfo) GetDocType() string

func (*DocInfo) GetErrorMsg

func (x *DocInfo) GetErrorMsg() string

func (*DocInfo) GetKnowledgeId

func (x *DocInfo) GetKnowledgeId() string

func (*DocInfo) GetStatus

func (x *DocInfo) GetStatus() int32

func (*DocInfo) GetUploadTime

func (x *DocInfo) GetUploadTime() string

func (*DocInfo) ProtoMessage

func (*DocInfo) ProtoMessage()

func (*DocInfo) ProtoReflect

func (x *DocInfo) ProtoReflect() protoreflect.Message

func (*DocInfo) Reset

func (x *DocInfo) Reset()

func (*DocInfo) String

func (x *DocInfo) String() string

type DocSegment

type DocSegment struct {
	SegmentType string   `protobuf:"bytes,1,opt,name=SegmentType,proto3" json:"SegmentType,omitempty"`  //分段方式 0:自定分段;1:自定义分段
	Splitter    []string `protobuf:"bytes,2,rep,name=Splitter,proto3" json:"Splitter,omitempty"`        // 分隔符(只有自定义分段必填)
	MaxSplitter int32    `protobuf:"varint,3,opt,name=MaxSplitter,proto3" json:"MaxSplitter,omitempty"` // 可分隔最大值(只有自定义分段必填)
	Overlap     float32  `protobuf:"fixed32,4,opt,name=Overlap,proto3" json:"Overlap,omitempty"`        // 可重叠值(只有自定义分段必填)
	// contains filtered or unexported fields
}

func (*DocSegment) Descriptor deprecated

func (*DocSegment) Descriptor() ([]byte, []int)

Deprecated: Use DocSegment.ProtoReflect.Descriptor instead.

func (*DocSegment) GetMaxSplitter

func (x *DocSegment) GetMaxSplitter() int32

func (*DocSegment) GetOverlap

func (x *DocSegment) GetOverlap() float32

func (*DocSegment) GetSegmentType

func (x *DocSegment) GetSegmentType() string

func (*DocSegment) GetSplitter

func (x *DocSegment) GetSplitter() []string

func (*DocSegment) ProtoMessage

func (*DocSegment) ProtoMessage()

func (*DocSegment) ProtoReflect

func (x *DocSegment) ProtoReflect() protoreflect.Message

func (*DocSegment) Reset

func (x *DocSegment) Reset()

func (*DocSegment) String

func (x *DocSegment) String() string

type DocSegmentListReq

type DocSegmentListReq struct {
	UserId   string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId    string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	DocId    string `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`
	PageSize int32  `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	PageNo   int32  `protobuf:"varint,5,opt,name=pageNo,proto3" json:"pageNo,omitempty"`
	// contains filtered or unexported fields
}

func (*DocSegmentListReq) Descriptor deprecated

func (*DocSegmentListReq) Descriptor() ([]byte, []int)

Deprecated: Use DocSegmentListReq.ProtoReflect.Descriptor instead.

func (*DocSegmentListReq) GetDocId

func (x *DocSegmentListReq) GetDocId() string

func (*DocSegmentListReq) GetOrgId

func (x *DocSegmentListReq) GetOrgId() string

func (*DocSegmentListReq) GetPageNo

func (x *DocSegmentListReq) GetPageNo() int32

func (*DocSegmentListReq) GetPageSize

func (x *DocSegmentListReq) GetPageSize() int32

func (*DocSegmentListReq) GetUserId

func (x *DocSegmentListReq) GetUserId() string

func (*DocSegmentListReq) ProtoMessage

func (*DocSegmentListReq) ProtoMessage()

func (*DocSegmentListReq) ProtoReflect

func (x *DocSegmentListReq) ProtoReflect() protoreflect.Message

func (*DocSegmentListReq) Reset

func (x *DocSegmentListReq) Reset()

func (*DocSegmentListReq) String

func (x *DocSegmentListReq) String() string

type DocSegmentListResp

type DocSegmentListResp struct {
	FileName        string            `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"`
	ContentList     []*SegmentContent `protobuf:"bytes,2,rep,name=contentList,proto3" json:"contentList,omitempty"`
	PageTotal       int32             `protobuf:"varint,3,opt,name=pageTotal,proto3" json:"pageTotal,omitempty"`
	SegmentTotalNum int32             `protobuf:"varint,4,opt,name=segmentTotalNum,proto3" json:"segmentTotalNum,omitempty"`
	MaxSegmentSize  int32             `protobuf:"varint,5,opt,name=maxSegmentSize,proto3" json:"maxSegmentSize,omitempty"`
	CreatedAt       string            `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	SegType         string            `protobuf:"bytes,7,opt,name=segType,proto3" json:"segType,omitempty"`
	Splitter        string            `protobuf:"bytes,8,opt,name=splitter,proto3" json:"splitter,omitempty"`
	// contains filtered or unexported fields
}

func (*DocSegmentListResp) Descriptor deprecated

func (*DocSegmentListResp) Descriptor() ([]byte, []int)

Deprecated: Use DocSegmentListResp.ProtoReflect.Descriptor instead.

func (*DocSegmentListResp) GetContentList

func (x *DocSegmentListResp) GetContentList() []*SegmentContent

func (*DocSegmentListResp) GetCreatedAt

func (x *DocSegmentListResp) GetCreatedAt() string

func (*DocSegmentListResp) GetFileName

func (x *DocSegmentListResp) GetFileName() string

func (*DocSegmentListResp) GetMaxSegmentSize

func (x *DocSegmentListResp) GetMaxSegmentSize() int32

func (*DocSegmentListResp) GetPageTotal

func (x *DocSegmentListResp) GetPageTotal() int32

func (*DocSegmentListResp) GetSegType

func (x *DocSegmentListResp) GetSegType() string

func (*DocSegmentListResp) GetSegmentTotalNum

func (x *DocSegmentListResp) GetSegmentTotalNum() int32

func (*DocSegmentListResp) GetSplitter

func (x *DocSegmentListResp) GetSplitter() string

func (*DocSegmentListResp) ProtoMessage

func (*DocSegmentListResp) ProtoMessage()

func (*DocSegmentListResp) ProtoReflect

func (x *DocSegmentListResp) ProtoReflect() protoreflect.Message

func (*DocSegmentListResp) Reset

func (x *DocSegmentListResp) Reset()

func (*DocSegmentListResp) String

func (x *DocSegmentListResp) String() string

type GetDocListReq

type GetDocListReq struct {
	KnowledgeId string `protobuf:"bytes,1,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	DocName     string `protobuf:"bytes,2,opt,name=docName,proto3" json:"docName,omitempty"`
	Status      int32  `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	PageSize    int32  `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	PageNum     int32  `protobuf:"varint,5,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
	UserId      string `protobuf:"bytes,6,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId       string `protobuf:"bytes,7,opt,name=orgId,proto3" json:"orgId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDocListReq) Descriptor deprecated

func (*GetDocListReq) Descriptor() ([]byte, []int)

Deprecated: Use GetDocListReq.ProtoReflect.Descriptor instead.

func (*GetDocListReq) GetDocName

func (x *GetDocListReq) GetDocName() string

func (*GetDocListReq) GetKnowledgeId

func (x *GetDocListReq) GetKnowledgeId() string

func (*GetDocListReq) GetOrgId

func (x *GetDocListReq) GetOrgId() string

func (*GetDocListReq) GetPageNum

func (x *GetDocListReq) GetPageNum() int32

func (*GetDocListReq) GetPageSize

func (x *GetDocListReq) GetPageSize() int32

func (*GetDocListReq) GetStatus

func (x *GetDocListReq) GetStatus() int32

func (*GetDocListReq) GetUserId

func (x *GetDocListReq) GetUserId() string

func (*GetDocListReq) ProtoMessage

func (*GetDocListReq) ProtoMessage()

func (*GetDocListReq) ProtoReflect

func (x *GetDocListReq) ProtoReflect() protoreflect.Message

func (*GetDocListReq) Reset

func (x *GetDocListReq) Reset()

func (*GetDocListReq) String

func (x *GetDocListReq) String() string

type GetDocListResp

type GetDocListResp struct {
	Docs     []*DocInfo `protobuf:"bytes,1,rep,name=docs,proto3" json:"docs,omitempty"`
	Total    int64      `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	PageNum  int32      `protobuf:"varint,3,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
	PageSize int32      `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDocListResp) Descriptor deprecated

func (*GetDocListResp) Descriptor() ([]byte, []int)

Deprecated: Use GetDocListResp.ProtoReflect.Descriptor instead.

func (*GetDocListResp) GetDocs

func (x *GetDocListResp) GetDocs() []*DocInfo

func (*GetDocListResp) GetPageNum

func (x *GetDocListResp) GetPageNum() int32

func (*GetDocListResp) GetPageSize

func (x *GetDocListResp) GetPageSize() int32

func (*GetDocListResp) GetTotal

func (x *GetDocListResp) GetTotal() int64

func (*GetDocListResp) ProtoMessage

func (*GetDocListResp) ProtoMessage()

func (*GetDocListResp) ProtoReflect

func (x *GetDocListResp) ProtoReflect() protoreflect.Message

func (*GetDocListResp) Reset

func (x *GetDocListResp) Reset()

func (*GetDocListResp) String

func (x *GetDocListResp) String() string

type ImportDocReq

type ImportDocReq struct {
	UserId        string         `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId         string         `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	KnowledgeId   string         `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`      //知识库id
	DocImportType int32          `protobuf:"varint,4,opt,name=docImportType,proto3" json:"docImportType,omitempty"` //文档导入类型,0:文件上传,1:url上传,2.批量url上传
	DocInfoList   []*DocFileInfo `protobuf:"bytes,5,rep,name=docInfoList,proto3" json:"docInfoList,omitempty"`      //上传文档列表
	DocSegment    *DocSegment    `protobuf:"bytes,6,opt,name=docSegment,proto3" json:"docSegment,omitempty"`        //分段信息配置
	DocAnalyzer   []string       `protobuf:"bytes,7,rep,name=docAnalyzer,proto3" json:"docAnalyzer,omitempty"`      //文档解析类型
	// contains filtered or unexported fields
}

func (*ImportDocReq) Descriptor deprecated

func (*ImportDocReq) Descriptor() ([]byte, []int)

Deprecated: Use ImportDocReq.ProtoReflect.Descriptor instead.

func (*ImportDocReq) GetDocAnalyzer

func (x *ImportDocReq) GetDocAnalyzer() []string

func (*ImportDocReq) GetDocImportType

func (x *ImportDocReq) GetDocImportType() int32

func (*ImportDocReq) GetDocInfoList

func (x *ImportDocReq) GetDocInfoList() []*DocFileInfo

func (*ImportDocReq) GetDocSegment

func (x *ImportDocReq) GetDocSegment() *DocSegment

func (*ImportDocReq) GetKnowledgeId

func (x *ImportDocReq) GetKnowledgeId() string

func (*ImportDocReq) GetOrgId

func (x *ImportDocReq) GetOrgId() string

func (*ImportDocReq) GetUserId

func (x *ImportDocReq) GetUserId() string

func (*ImportDocReq) ProtoMessage

func (*ImportDocReq) ProtoMessage()

func (*ImportDocReq) ProtoReflect

func (x *ImportDocReq) ProtoReflect() protoreflect.Message

func (*ImportDocReq) Reset

func (x *ImportDocReq) Reset()

func (*ImportDocReq) String

func (x *ImportDocReq) String() string

type InitDocStatusReq

type InitDocStatusReq struct {
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId  string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	// contains filtered or unexported fields
}

func (*InitDocStatusReq) Descriptor deprecated

func (*InitDocStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use InitDocStatusReq.ProtoReflect.Descriptor instead.

func (*InitDocStatusReq) GetOrgId

func (x *InitDocStatusReq) GetOrgId() string

func (*InitDocStatusReq) GetUserId

func (x *InitDocStatusReq) GetUserId() string

func (*InitDocStatusReq) ProtoMessage

func (*InitDocStatusReq) ProtoMessage()

func (*InitDocStatusReq) ProtoReflect

func (x *InitDocStatusReq) ProtoReflect() protoreflect.Message

func (*InitDocStatusReq) Reset

func (x *InitDocStatusReq) Reset()

func (*InitDocStatusReq) String

func (x *InitDocStatusReq) String() string

type KnowledgeBaseDocServiceClient

type KnowledgeBaseDocServiceClient interface {
	// 获取文档列表
	GetDocList(ctx context.Context, in *GetDocListReq, opts ...grpc.CallOption) (*GetDocListResp, error)
	// 上传文档
	ImportDoc(ctx context.Context, in *ImportDocReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 更新文档状态
	UpdateDocStatus(ctx context.Context, in *UpdateDocStatusReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 初始化文档状态
	InitDocStatus(ctx context.Context, in *InitDocStatusReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 删除文档
	DeleteDoc(ctx context.Context, in *DeleteDocReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 获取知识库异步上传任务提示
	GetDocCategoryUploadTip(ctx context.Context, in *DocImportTipReq, opts ...grpc.CallOption) (*DocImportTipResp, error)
	// 获取知识库文档切分结果
	GetDocSegmentList(ctx context.Context, in *DocSegmentListReq, opts ...grpc.CallOption) (*DocSegmentListResp, error)
	// 更新文档切片状态
	UpdateDocSegmentStatus(ctx context.Context, in *UpdateDocSegmentReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// url上传功能-解析url
	AnalysisDocUrl(ctx context.Context, in *AnalysisUrlDocReq, opts ...grpc.CallOption) (*AnalysisUrlDocResp, error)
}

KnowledgeBaseDocServiceClient is the client API for KnowledgeBaseDocService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type KnowledgeBaseDocServiceServer

type KnowledgeBaseDocServiceServer interface {
	// 获取文档列表
	GetDocList(context.Context, *GetDocListReq) (*GetDocListResp, error)
	// 上传文档
	ImportDoc(context.Context, *ImportDocReq) (*emptypb.Empty, error)
	// 更新文档状态
	UpdateDocStatus(context.Context, *UpdateDocStatusReq) (*emptypb.Empty, error)
	// 初始化文档状态
	InitDocStatus(context.Context, *InitDocStatusReq) (*emptypb.Empty, error)
	// 删除文档
	DeleteDoc(context.Context, *DeleteDocReq) (*emptypb.Empty, error)
	// 获取知识库异步上传任务提示
	GetDocCategoryUploadTip(context.Context, *DocImportTipReq) (*DocImportTipResp, error)
	// 获取知识库文档切分结果
	GetDocSegmentList(context.Context, *DocSegmentListReq) (*DocSegmentListResp, error)
	// 更新文档切片状态
	UpdateDocSegmentStatus(context.Context, *UpdateDocSegmentReq) (*emptypb.Empty, error)
	// url上传功能-解析url
	AnalysisDocUrl(context.Context, *AnalysisUrlDocReq) (*AnalysisUrlDocResp, error)
	// contains filtered or unexported methods
}

KnowledgeBaseDocServiceServer is the server API for KnowledgeBaseDocService service. All implementations must embed UnimplementedKnowledgeBaseDocServiceServer for forward compatibility.

type SegmentContent

type SegmentContent struct {
	Content    string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Len        int32  `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"`
	Available  bool   `protobuf:"varint,3,opt,name=available,proto3" json:"available,omitempty"`
	ContentId  string `protobuf:"bytes,4,opt,name=contentId,proto3" json:"contentId,omitempty"`
	ContentNum int32  `protobuf:"varint,5,opt,name=contentNum,proto3" json:"contentNum,omitempty"`
	// contains filtered or unexported fields
}

func (*SegmentContent) Descriptor deprecated

func (*SegmentContent) Descriptor() ([]byte, []int)

Deprecated: Use SegmentContent.ProtoReflect.Descriptor instead.

func (*SegmentContent) GetAvailable

func (x *SegmentContent) GetAvailable() bool

func (*SegmentContent) GetContent

func (x *SegmentContent) GetContent() string

func (*SegmentContent) GetContentId

func (x *SegmentContent) GetContentId() string

func (*SegmentContent) GetContentNum

func (x *SegmentContent) GetContentNum() int32

func (*SegmentContent) GetLen

func (x *SegmentContent) GetLen() int32

func (*SegmentContent) ProtoMessage

func (*SegmentContent) ProtoMessage()

func (*SegmentContent) ProtoReflect

func (x *SegmentContent) ProtoReflect() protoreflect.Message

func (*SegmentContent) Reset

func (x *SegmentContent) Reset()

func (*SegmentContent) String

func (x *SegmentContent) String() string

type UnimplementedKnowledgeBaseDocServiceServer

type UnimplementedKnowledgeBaseDocServiceServer struct{}

UnimplementedKnowledgeBaseDocServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedKnowledgeBaseDocServiceServer) AnalysisDocUrl

func (UnimplementedKnowledgeBaseDocServiceServer) DeleteDoc

func (UnimplementedKnowledgeBaseDocServiceServer) GetDocCategoryUploadTip

func (UnimplementedKnowledgeBaseDocServiceServer) GetDocList

func (UnimplementedKnowledgeBaseDocServiceServer) GetDocSegmentList

func (UnimplementedKnowledgeBaseDocServiceServer) ImportDoc

func (UnimplementedKnowledgeBaseDocServiceServer) InitDocStatus

func (UnimplementedKnowledgeBaseDocServiceServer) UpdateDocSegmentStatus

func (UnimplementedKnowledgeBaseDocServiceServer) UpdateDocStatus

type UnsafeKnowledgeBaseDocServiceServer

type UnsafeKnowledgeBaseDocServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeKnowledgeBaseDocServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KnowledgeBaseDocServiceServer will result in compilation errors.

type UpdateDocSegmentReq

type UpdateDocSegmentReq struct {
	UserId        string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId         string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	DocId         string `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`
	ContentId     string `protobuf:"bytes,4,opt,name=contentId,proto3" json:"contentId,omitempty"`
	ContentStatus string `protobuf:"bytes,5,opt,name=contentStatus,proto3" json:"contentStatus,omitempty"`
	All           bool   `protobuf:"varint,6,opt,name=all,proto3" json:"all,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDocSegmentReq) Descriptor deprecated

func (*UpdateDocSegmentReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDocSegmentReq.ProtoReflect.Descriptor instead.

func (*UpdateDocSegmentReq) GetAll

func (x *UpdateDocSegmentReq) GetAll() bool

func (*UpdateDocSegmentReq) GetContentId

func (x *UpdateDocSegmentReq) GetContentId() string

func (*UpdateDocSegmentReq) GetContentStatus

func (x *UpdateDocSegmentReq) GetContentStatus() string

func (*UpdateDocSegmentReq) GetDocId

func (x *UpdateDocSegmentReq) GetDocId() string

func (*UpdateDocSegmentReq) GetOrgId

func (x *UpdateDocSegmentReq) GetOrgId() string

func (*UpdateDocSegmentReq) GetUserId

func (x *UpdateDocSegmentReq) GetUserId() string

func (*UpdateDocSegmentReq) ProtoMessage

func (*UpdateDocSegmentReq) ProtoMessage()

func (*UpdateDocSegmentReq) ProtoReflect

func (x *UpdateDocSegmentReq) ProtoReflect() protoreflect.Message

func (*UpdateDocSegmentReq) Reset

func (x *UpdateDocSegmentReq) Reset()

func (*UpdateDocSegmentReq) String

func (x *UpdateDocSegmentReq) String() string

type UpdateDocStatusReq

type UpdateDocStatusReq struct {
	DocId  string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"`    //文档id
	Status int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` //文档状态
	// contains filtered or unexported fields
}

func (*UpdateDocStatusReq) Descriptor deprecated

func (*UpdateDocStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDocStatusReq.ProtoReflect.Descriptor instead.

func (*UpdateDocStatusReq) GetDocId

func (x *UpdateDocStatusReq) GetDocId() string

func (*UpdateDocStatusReq) GetStatus

func (x *UpdateDocStatusReq) GetStatus() int32

func (*UpdateDocStatusReq) ProtoMessage

func (*UpdateDocStatusReq) ProtoMessage()

func (*UpdateDocStatusReq) ProtoReflect

func (x *UpdateDocStatusReq) ProtoReflect() protoreflect.Message

func (*UpdateDocStatusReq) Reset

func (x *UpdateDocStatusReq) Reset()

func (*UpdateDocStatusReq) String

func (x *UpdateDocStatusReq) String() string

type UrlInfo

type UrlInfo struct {
	Url      string  `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	FileName string  `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"`
	FileSize float64 `protobuf:"fixed64,3,opt,name=fileSize,proto3" json:"fileSize,omitempty"`
	// contains filtered or unexported fields
}

func (*UrlInfo) Descriptor deprecated

func (*UrlInfo) Descriptor() ([]byte, []int)

Deprecated: Use UrlInfo.ProtoReflect.Descriptor instead.

func (*UrlInfo) GetFileName

func (x *UrlInfo) GetFileName() string

func (*UrlInfo) GetFileSize

func (x *UrlInfo) GetFileSize() float64

func (*UrlInfo) GetUrl

func (x *UrlInfo) GetUrl() string

func (*UrlInfo) ProtoMessage

func (*UrlInfo) ProtoMessage()

func (*UrlInfo) ProtoReflect

func (x *UrlInfo) ProtoReflect() protoreflect.Message

func (*UrlInfo) Reset

func (x *UrlInfo) Reset()

func (*UrlInfo) String

func (x *UrlInfo) String() string

Jump to

Keyboard shortcuts

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