knowledgebase_report_service

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KnowledgeBaseReportService_GetKnowledgeReport_FullMethodName      = "/knowledgebase_report_service.KnowledgeBaseReportService/GetKnowledgeReport"
	KnowledgeBaseReportService_GenerateKnowledgeReport_FullMethodName = "/knowledgebase_report_service.KnowledgeBaseReportService/GenerateKnowledgeReport"
	KnowledgeBaseReportService_DeleteKnowledgeReport_FullMethodName   = "/knowledgebase_report_service.KnowledgeBaseReportService/DeleteKnowledgeReport"
	KnowledgeBaseReportService_UpdateKnowledgeReport_FullMethodName   = "/knowledgebase_report_service.KnowledgeBaseReportService/UpdateKnowledgeReport"
	KnowledgeBaseReportService_AddKnowledgeReport_FullMethodName      = "/knowledgebase_report_service.KnowledgeBaseReportService/AddKnowledgeReport"
	KnowledgeBaseReportService_BatchAddKnowledgeReport_FullMethodName = "/knowledgebase_report_service.KnowledgeBaseReportService/BatchAddKnowledgeReport"
)

Variables

View Source
var File_proto_knowledgebase_report_service_knowledgebase_report_service_proto protoreflect.FileDescriptor
View Source
var KnowledgeBaseReportService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "knowledgebase_report_service.KnowledgeBaseReportService",
	HandlerType: (*KnowledgeBaseReportServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetKnowledgeReport",
			Handler:    _KnowledgeBaseReportService_GetKnowledgeReport_Handler,
		},
		{
			MethodName: "GenerateKnowledgeReport",
			Handler:    _KnowledgeBaseReportService_GenerateKnowledgeReport_Handler,
		},
		{
			MethodName: "DeleteKnowledgeReport",
			Handler:    _KnowledgeBaseReportService_DeleteKnowledgeReport_Handler,
		},
		{
			MethodName: "UpdateKnowledgeReport",
			Handler:    _KnowledgeBaseReportService_UpdateKnowledgeReport_Handler,
		},
		{
			MethodName: "AddKnowledgeReport",
			Handler:    _KnowledgeBaseReportService_AddKnowledgeReport_Handler,
		},
		{
			MethodName: "BatchAddKnowledgeReport",
			Handler:    _KnowledgeBaseReportService_BatchAddKnowledgeReport_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/knowledgebase-report-service/knowledgebase-report-service.proto",
}

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

Functions

func RegisterKnowledgeBaseReportServiceServer

func RegisterKnowledgeBaseReportServiceServer(s grpc.ServiceRegistrar, srv KnowledgeBaseReportServiceServer)

Types

type AddReportReq

type AddReportReq struct {
	KnowledgeInfo *ReportIdentity `protobuf:"bytes,1,opt,name=knowledgeInfo,proto3" json:"knowledgeInfo,omitempty"`
	Title         string          `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Content       string          `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*AddReportReq) Descriptor deprecated

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

Deprecated: Use AddReportReq.ProtoReflect.Descriptor instead.

func (*AddReportReq) GetContent

func (x *AddReportReq) GetContent() string

func (*AddReportReq) GetKnowledgeInfo

func (x *AddReportReq) GetKnowledgeInfo() *ReportIdentity

func (*AddReportReq) GetTitle

func (x *AddReportReq) GetTitle() string

func (*AddReportReq) ProtoMessage

func (*AddReportReq) ProtoMessage()

func (*AddReportReq) ProtoReflect

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

func (*AddReportReq) Reset

func (x *AddReportReq) Reset()

func (*AddReportReq) String

func (x *AddReportReq) String() string

type BatchAddKnowledgeReportReq

type BatchAddKnowledgeReportReq struct {
	KnowledgeInfo *ReportIdentity `protobuf:"bytes,1,opt,name=knowledgeInfo,proto3" json:"knowledgeInfo,omitempty"`
	FileUrl       string          `protobuf:"bytes,2,opt,name=fileUrl,proto3" json:"fileUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchAddKnowledgeReportReq) Descriptor deprecated

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

Deprecated: Use BatchAddKnowledgeReportReq.ProtoReflect.Descriptor instead.

func (*BatchAddKnowledgeReportReq) GetFileUrl

func (x *BatchAddKnowledgeReportReq) GetFileUrl() string

func (*BatchAddKnowledgeReportReq) GetKnowledgeInfo

func (x *BatchAddKnowledgeReportReq) GetKnowledgeInfo() *ReportIdentity

func (*BatchAddKnowledgeReportReq) ProtoMessage

func (*BatchAddKnowledgeReportReq) ProtoMessage()

func (*BatchAddKnowledgeReportReq) ProtoReflect

func (*BatchAddKnowledgeReportReq) Reset

func (x *BatchAddKnowledgeReportReq) Reset()

func (*BatchAddKnowledgeReportReq) String

func (x *BatchAddKnowledgeReportReq) String() string

type DeleteReportReq

type DeleteReportReq struct {
	KnowledgeInfo *ReportIdentity `protobuf:"bytes,1,opt,name=knowledgeInfo,proto3" json:"knowledgeInfo,omitempty"`
	ContentId     string          `protobuf:"bytes,2,opt,name=contentId,proto3" json:"contentId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteReportReq) Descriptor deprecated

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

Deprecated: Use DeleteReportReq.ProtoReflect.Descriptor instead.

func (*DeleteReportReq) GetContentId

func (x *DeleteReportReq) GetContentId() string

func (*DeleteReportReq) GetKnowledgeInfo

func (x *DeleteReportReq) GetKnowledgeInfo() *ReportIdentity

func (*DeleteReportReq) ProtoMessage

func (*DeleteReportReq) ProtoMessage()

func (*DeleteReportReq) ProtoReflect

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

func (*DeleteReportReq) Reset

func (x *DeleteReportReq) Reset()

func (*DeleteReportReq) String

func (x *DeleteReportReq) String() string

type GetReportReq

type GetReportReq struct {
	KnowledgeInfo *ReportIdentity `protobuf:"bytes,1,opt,name=knowledgeInfo,proto3" json:"knowledgeInfo,omitempty"`
	PageSize      int32           `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	PageNum       int32           `protobuf:"varint,3,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReportReq) Descriptor deprecated

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

Deprecated: Use GetReportReq.ProtoReflect.Descriptor instead.

func (*GetReportReq) GetKnowledgeInfo

func (x *GetReportReq) GetKnowledgeInfo() *ReportIdentity

func (*GetReportReq) GetPageNum

func (x *GetReportReq) GetPageNum() int32

func (*GetReportReq) GetPageSize

func (x *GetReportReq) GetPageSize() int32

func (*GetReportReq) ProtoMessage

func (*GetReportReq) ProtoMessage()

func (*GetReportReq) ProtoReflect

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

func (*GetReportReq) Reset

func (x *GetReportReq) Reset()

func (*GetReportReq) String

func (x *GetReportReq) String() string

type GetReportResp

type GetReportResp struct {
	Total         int32         `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`                // 社区报告数量
	CreatedAt     string        `protobuf:"bytes,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"`         // 生成时间
	Status        int32         `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`              // 状态:0.未生成(-) 1.生成中 2.已生成 3.生成失败
	CanGenerate   bool          `protobuf:"varint,4,opt,name=canGenerate,proto3" json:"canGenerate,omitempty"`    // 是否可生成:true.可生成 false.不可生成
	CanAddReport  bool          `protobuf:"varint,5,opt,name=canAddReport,proto3" json:"canAddReport,omitempty"`  // 是否可新增社区报告:true.可新增 false.不可新增
	GenerateLabel string        `protobuf:"bytes,6,opt,name=generateLabel,proto3" json:"generateLabel,omitempty"` // 生成社区报告按钮文案: 生成/重新生成
	List          []*ReportInfo `protobuf:"bytes,7,rep,name=list,proto3" json:"list,omitempty"`                   // 社区报告列表
	// contains filtered or unexported fields
}

func (*GetReportResp) Descriptor deprecated

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

Deprecated: Use GetReportResp.ProtoReflect.Descriptor instead.

func (*GetReportResp) GetCanAddReport

func (x *GetReportResp) GetCanAddReport() bool

func (*GetReportResp) GetCanGenerate

func (x *GetReportResp) GetCanGenerate() bool

func (*GetReportResp) GetCreatedAt

func (x *GetReportResp) GetCreatedAt() string

func (*GetReportResp) GetGenerateLabel

func (x *GetReportResp) GetGenerateLabel() string

func (*GetReportResp) GetList

func (x *GetReportResp) GetList() []*ReportInfo

func (*GetReportResp) GetStatus

func (x *GetReportResp) GetStatus() int32

func (*GetReportResp) GetTotal

func (x *GetReportResp) GetTotal() int32

func (*GetReportResp) ProtoMessage

func (*GetReportResp) ProtoMessage()

func (*GetReportResp) ProtoReflect

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

func (*GetReportResp) Reset

func (x *GetReportResp) Reset()

func (*GetReportResp) String

func (x *GetReportResp) String() string

type KnowledgeBaseReportServiceClient

type KnowledgeBaseReportServiceClient interface {
	// 获取知识库社区报告
	GetKnowledgeReport(ctx context.Context, in *GetReportReq, opts ...grpc.CallOption) (*GetReportResp, error)
	// 生成知识库社区报告
	GenerateKnowledgeReport(ctx context.Context, in *ReportIdentity, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 删除知识库社区报告
	DeleteKnowledgeReport(ctx context.Context, in *DeleteReportReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 更新知识库社区报告
	UpdateKnowledgeReport(ctx context.Context, in *UpdateReportReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 单条新增知识库社区报告
	AddKnowledgeReport(ctx context.Context, in *AddReportReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 批量新增知识库社区报告
	BatchAddKnowledgeReport(ctx context.Context, in *BatchAddKnowledgeReportReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

KnowledgeBaseReportServiceClient is the client API for KnowledgeBaseReportService 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 KnowledgeBaseReportServiceServer

type KnowledgeBaseReportServiceServer interface {
	// 获取知识库社区报告
	GetKnowledgeReport(context.Context, *GetReportReq) (*GetReportResp, error)
	// 生成知识库社区报告
	GenerateKnowledgeReport(context.Context, *ReportIdentity) (*emptypb.Empty, error)
	// 删除知识库社区报告
	DeleteKnowledgeReport(context.Context, *DeleteReportReq) (*emptypb.Empty, error)
	// 更新知识库社区报告
	UpdateKnowledgeReport(context.Context, *UpdateReportReq) (*emptypb.Empty, error)
	// 单条新增知识库社区报告
	AddKnowledgeReport(context.Context, *AddReportReq) (*emptypb.Empty, error)
	// 批量新增知识库社区报告
	BatchAddKnowledgeReport(context.Context, *BatchAddKnowledgeReportReq) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

KnowledgeBaseReportServiceServer is the server API for KnowledgeBaseReportService service. All implementations must embed UnimplementedKnowledgeBaseReportServiceServer for forward compatibility.

type ReportIdentity

type ReportIdentity struct {
	KnowledgeId string `protobuf:"bytes,1,opt,name=knowledgeId,proto3" json:"knowledgeId,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 (*ReportIdentity) Descriptor deprecated

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

Deprecated: Use ReportIdentity.ProtoReflect.Descriptor instead.

func (*ReportIdentity) GetKnowledgeId

func (x *ReportIdentity) GetKnowledgeId() string

func (*ReportIdentity) GetOrgId

func (x *ReportIdentity) GetOrgId() string

func (*ReportIdentity) GetUserId

func (x *ReportIdentity) GetUserId() string

func (*ReportIdentity) ProtoMessage

func (*ReportIdentity) ProtoMessage()

func (*ReportIdentity) ProtoReflect

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

func (*ReportIdentity) Reset

func (x *ReportIdentity) Reset()

func (*ReportIdentity) String

func (x *ReportIdentity) String() string

type ReportInfo

type ReportInfo struct {
	ContentId string `protobuf:"bytes,1,opt,name=contentId,proto3" json:"contentId,omitempty"`
	Title     string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Content   string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportInfo) Descriptor deprecated

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

Deprecated: Use ReportInfo.ProtoReflect.Descriptor instead.

func (*ReportInfo) GetContent

func (x *ReportInfo) GetContent() string

func (*ReportInfo) GetContentId

func (x *ReportInfo) GetContentId() string

func (*ReportInfo) GetTitle

func (x *ReportInfo) GetTitle() string

func (*ReportInfo) ProtoMessage

func (*ReportInfo) ProtoMessage()

func (*ReportInfo) ProtoReflect

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

func (*ReportInfo) Reset

func (x *ReportInfo) Reset()

func (*ReportInfo) String

func (x *ReportInfo) String() string

type UnimplementedKnowledgeBaseReportServiceServer

type UnimplementedKnowledgeBaseReportServiceServer struct{}

UnimplementedKnowledgeBaseReportServiceServer 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 (UnimplementedKnowledgeBaseReportServiceServer) AddKnowledgeReport

func (UnimplementedKnowledgeBaseReportServiceServer) BatchAddKnowledgeReport

func (UnimplementedKnowledgeBaseReportServiceServer) DeleteKnowledgeReport

func (UnimplementedKnowledgeBaseReportServiceServer) GenerateKnowledgeReport

func (UnimplementedKnowledgeBaseReportServiceServer) GetKnowledgeReport

func (UnimplementedKnowledgeBaseReportServiceServer) UpdateKnowledgeReport

type UnsafeKnowledgeBaseReportServiceServer

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

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

type UpdateReportReq

type UpdateReportReq struct {
	KnowledgeInfo *ReportIdentity `protobuf:"bytes,1,opt,name=knowledgeInfo,proto3" json:"knowledgeInfo,omitempty"`
	Data          *ReportInfo     `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReportReq) Descriptor deprecated

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

Deprecated: Use UpdateReportReq.ProtoReflect.Descriptor instead.

func (*UpdateReportReq) GetData

func (x *UpdateReportReq) GetData() *ReportInfo

func (*UpdateReportReq) GetKnowledgeInfo

func (x *UpdateReportReq) GetKnowledgeInfo() *ReportIdentity

func (*UpdateReportReq) ProtoMessage

func (*UpdateReportReq) ProtoMessage()

func (*UpdateReportReq) ProtoReflect

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

func (*UpdateReportReq) Reset

func (x *UpdateReportReq) Reset()

func (*UpdateReportReq) String

func (x *UpdateReportReq) String() string

Jump to

Keyboard shortcuts

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