|
@@ -1,16 +1,12 @@
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// versions:
|
|
-// protoc-gen-go v1.27.1
|
|
|
|
-// protoc v3.19.4
|
|
|
|
|
|
+// protoc-gen-go v1.28.0
|
|
|
|
+// protoc v3.15.5
|
|
// source: knowledge.proto
|
|
// source: knowledge.proto
|
|
|
|
|
|
-package knowledge
|
|
|
|
|
|
+package knowledgeclient
|
|
|
|
|
|
import (
|
|
import (
|
|
- context "context"
|
|
|
|
- grpc "google.golang.org/grpc"
|
|
|
|
- codes "google.golang.org/grpc/codes"
|
|
|
|
- status "google.golang.org/grpc/status"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
reflect "reflect"
|
|
@@ -1702,6 +1698,132 @@ func (x *CommonPhraseQueryResp) GetData() []*Content {
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+type KeywordListResp struct {
|
|
|
|
+ state protoimpl.MessageState
|
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
+
|
|
|
|
+ ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
|
|
|
|
+ ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
|
|
|
|
+ Data []*KeywordList `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordListResp) Reset() {
|
|
|
|
+ *x = KeywordListResp{}
|
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
|
+ mi := &file_knowledge_proto_msgTypes[26]
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordListResp) String() string {
|
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (*KeywordListResp) ProtoMessage() {}
|
|
|
|
+
|
|
|
|
+func (x *KeywordListResp) ProtoReflect() protoreflect.Message {
|
|
|
|
+ mi := &file_knowledge_proto_msgTypes[26]
|
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
+ }
|
|
|
|
+ return ms
|
|
|
|
+ }
|
|
|
|
+ return mi.MessageOf(x)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// Deprecated: Use KeywordListResp.ProtoReflect.Descriptor instead.
|
|
|
|
+func (*KeywordListResp) Descriptor() ([]byte, []int) {
|
|
|
|
+ return file_knowledge_proto_rawDescGZIP(), []int{26}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordListResp) GetErrorCode() int64 {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.ErrorCode
|
|
|
|
+ }
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordListResp) GetErrorMsg() string {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.ErrorMsg
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordListResp) GetData() []*KeywordList {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.Data
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type KeywordList struct {
|
|
|
|
+ state protoimpl.MessageState
|
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
+
|
|
|
|
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
+ State int64 `protobuf:"varint,2,opt,name=state,proto3" json:"state,omitempty"`
|
|
|
|
+ Mold int64 `protobuf:"varint,3,opt,name=mold,proto3" json:"mold,omitempty"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordList) Reset() {
|
|
|
|
+ *x = KeywordList{}
|
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
|
+ mi := &file_knowledge_proto_msgTypes[27]
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordList) String() string {
|
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (*KeywordList) ProtoMessage() {}
|
|
|
|
+
|
|
|
|
+func (x *KeywordList) ProtoReflect() protoreflect.Message {
|
|
|
|
+ mi := &file_knowledge_proto_msgTypes[27]
|
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
+ }
|
|
|
|
+ return ms
|
|
|
|
+ }
|
|
|
|
+ return mi.MessageOf(x)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// Deprecated: Use KeywordList.ProtoReflect.Descriptor instead.
|
|
|
|
+func (*KeywordList) Descriptor() ([]byte, []int) {
|
|
|
|
+ return file_knowledge_proto_rawDescGZIP(), []int{27}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordList) GetName() string {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.Name
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordList) GetState() int64 {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.State
|
|
|
|
+ }
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *KeywordList) GetMold() int64 {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.Mold
|
|
|
|
+ }
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
var File_knowledge_proto protoreflect.FileDescriptor
|
|
var File_knowledge_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_knowledge_proto_rawDesc = []byte{
|
|
var file_knowledge_proto_rawDesc = []byte{
|
|
@@ -1888,70 +2010,87 @@ var file_knowledge_proto_rawDesc = []byte{
|
|
0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72,
|
|
0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72,
|
|
0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20,
|
|
0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20,
|
|
0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43,
|
|
0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43,
|
|
- 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xd9, 0x07, 0x0a,
|
|
|
|
- 0x09, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x4b, 0x6e,
|
|
|
|
- 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x41, 0x64, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x6d,
|
|
|
|
- 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
- 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52,
|
|
|
|
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c,
|
|
|
|
- 0x65, 0x64, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c,
|
|
|
|
- 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
|
|
- 0x16, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52,
|
|
|
|
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c,
|
|
|
|
- 0x65, 0x64, 0x67, 0x65, 0x45, 0x64, 0x69, 0x74, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c,
|
|
|
|
- 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x64, 0x69,
|
|
|
|
- 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e,
|
|
|
|
- 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x4b,
|
|
|
|
- 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x2e, 0x74,
|
|
|
|
- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67,
|
|
|
|
- 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
|
|
- 0x74, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
|
|
- 0x40, 0x0a, 0x0c, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x12,
|
|
|
|
- 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c,
|
|
|
|
- 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d,
|
|
|
|
- 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
- 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12,
|
|
|
|
- 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
|
|
|
|
- 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c,
|
|
|
|
- 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65,
|
|
|
|
- 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0f, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41,
|
|
|
|
- 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
|
|
|
|
- 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x1d,
|
|
|
|
- 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d,
|
|
|
|
- 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a,
|
|
|
|
- 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x41, 0x64,
|
|
|
|
- 0x64, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d,
|
|
|
|
- 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71,
|
|
|
|
- 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52,
|
|
|
|
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f,
|
|
|
|
- 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x2e, 0x74,
|
|
|
|
- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
|
|
|
|
- 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74,
|
|
|
|
- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
|
|
|
|
- 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a,
|
|
|
|
- 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69,
|
|
|
|
- 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f,
|
|
|
|
- 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52,
|
|
|
|
- 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f,
|
|
|
|
- 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52,
|
|
|
|
- 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72,
|
|
|
|
- 0x61, 0x73, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
|
|
- 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73,
|
|
|
|
- 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
|
|
- 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62,
|
|
|
|
- 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x43, 0x6c,
|
|
|
|
- 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
|
|
- 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73,
|
|
|
|
- 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x24, 0x2e, 0x74,
|
|
|
|
- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
|
|
|
|
- 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
|
|
|
- 0x73, 0x70, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61,
|
|
|
|
- 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
|
|
- 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51,
|
|
|
|
- 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
|
|
- 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51,
|
|
|
|
- 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x6b, 0x6e,
|
|
|
|
- 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
|
+ 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x78, 0x0a, 0x0f,
|
|
|
|
+ 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
|
+ 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
|
|
|
|
+ 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b,
|
|
|
|
+ 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
+ 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x29, 0x0a, 0x04, 0x64,
|
|
|
|
+ 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70,
|
|
|
|
+ 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74,
|
|
|
|
+ 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x4b, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72,
|
|
|
|
+ 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
|
|
|
|
+ 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12,
|
|
|
|
+ 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6d,
|
|
|
|
+ 0x6f, 0x6c, 0x64, 0x32, 0xa3, 0x08, 0x0a, 0x09, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67,
|
|
|
|
+ 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x41, 0x64,
|
|
|
|
+ 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64,
|
|
|
|
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
|
|
+ 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e,
|
|
|
|
+ 0x0a, 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12,
|
|
|
|
+ 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52,
|
|
|
|
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
|
|
|
|
+ 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42,
|
|
|
|
+ 0x0a, 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x64, 0x69, 0x74, 0x12,
|
|
|
|
+ 0x1a, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c,
|
|
|
|
+ 0x65, 0x64, 0x67, 0x65, 0x45, 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65,
|
|
|
|
+ 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
+ 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49,
|
|
|
|
+ 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b,
|
|
|
|
+ 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x16,
|
|
|
|
+ 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
|
|
|
|
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65,
|
|
|
|
+ 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
|
|
|
|
+ 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x52, 0x65,
|
|
|
|
+ 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64,
|
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64,
|
|
|
|
+ 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
|
|
|
|
+ 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
|
|
|
|
+ 0x18, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
|
|
|
|
+ 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0f, 0x52, 0x65, 0x63,
|
|
|
|
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x74,
|
|
|
|
+ 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77,
|
|
|
|
+ 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
|
|
|
|
+ 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72,
|
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
|
|
|
|
+ 0x72, 0x61, 0x73, 0x65, 0x73, 0x41, 0x64, 0x64, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c,
|
|
|
|
+ 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65,
|
|
|
|
+ 0x73, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
|
|
+ 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54,
|
|
|
|
+ 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49,
|
|
|
|
+ 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43,
|
|
|
|
+ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f,
|
|
|
|
+ 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43,
|
|
|
|
+ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f,
|
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
|
|
|
|
+ 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70,
|
|
|
|
+ 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
|
|
|
|
+ 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70,
|
|
|
|
+ 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
|
|
|
|
+ 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x10, 0x43, 0x6f,
|
|
|
|
+ 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x12, 0x1e,
|
|
|
|
+ 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
|
|
|
+ 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x15,
|
|
|
|
+ 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73,
|
|
|
|
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50,
|
|
|
|
+ 0x68, 0x72, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23,
|
|
|
|
+ 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
|
|
|
+ 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74,
|
|
|
|
+ 0x52, 0x65, 0x71, 0x1a, 0x24, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43,
|
|
|
|
+ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73,
|
|
|
|
+ 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d,
|
|
|
|
+ 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1e,
|
|
|
|
+ 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
|
|
|
+ 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1f,
|
|
|
|
+ 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
|
|
|
+ 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
|
+ 0x48, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e,
|
|
|
|
+ 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
|
|
|
+ 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x19,
|
|
|
|
+ 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72,
|
|
|
|
+ 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x6b,
|
|
|
|
+ 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
}
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -1966,7 +2105,7 @@ func file_knowledge_proto_rawDescGZIP() []byte {
|
|
return file_knowledge_proto_rawDescData
|
|
return file_knowledge_proto_rawDescData
|
|
}
|
|
}
|
|
|
|
|
|
-var file_knowledge_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
|
|
|
|
|
|
+var file_knowledge_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
|
|
var file_knowledge_proto_goTypes = []interface{}{
|
|
var file_knowledge_proto_goTypes = []interface{}{
|
|
(*Question)(nil), // 0: template.Question
|
|
(*Question)(nil), // 0: template.Question
|
|
(*AddRequest)(nil), // 1: template.AddRequest
|
|
(*AddRequest)(nil), // 1: template.AddRequest
|
|
@@ -1994,6 +2133,8 @@ var file_knowledge_proto_goTypes = []interface{}{
|
|
(*CommonPhrasesClassListResp)(nil), // 23: template.CommonPhrasesClassListResp
|
|
(*CommonPhrasesClassListResp)(nil), // 23: template.CommonPhrasesClassListResp
|
|
(*CommonPhraseQueryReq)(nil), // 24: template.CommonPhraseQueryReq
|
|
(*CommonPhraseQueryReq)(nil), // 24: template.CommonPhraseQueryReq
|
|
(*CommonPhraseQueryResp)(nil), // 25: template.CommonPhraseQueryResp
|
|
(*CommonPhraseQueryResp)(nil), // 25: template.CommonPhraseQueryResp
|
|
|
|
+ (*KeywordListResp)(nil), // 26: template.KeywordListResp
|
|
|
|
+ (*KeywordList)(nil), // 27: template.KeywordList
|
|
}
|
|
}
|
|
var file_knowledge_proto_depIdxs = []int32{
|
|
var file_knowledge_proto_depIdxs = []int32{
|
|
0, // 0: template.FindAnswerResp.data:type_name -> template.Question
|
|
0, // 0: template.FindAnswerResp.data:type_name -> template.Question
|
|
@@ -2007,37 +2148,40 @@ var file_knowledge_proto_depIdxs = []int32{
|
|
21, // 8: template.CommonPhrasesClassListData.classList:type_name -> template.Content
|
|
21, // 8: template.CommonPhrasesClassListData.classList:type_name -> template.Content
|
|
22, // 9: template.CommonPhrasesClassListResp.Data:type_name -> template.CommonPhrasesClassListData
|
|
22, // 9: template.CommonPhrasesClassListResp.Data:type_name -> template.CommonPhrasesClassListData
|
|
21, // 10: template.CommonPhraseQueryResp.data:type_name -> template.Content
|
|
21, // 10: template.CommonPhraseQueryResp.data:type_name -> template.Content
|
|
- 1, // 11: template.knowledge.KnowledgeAdd:input_type -> template.AddRequest
|
|
|
|
- 7, // 12: template.knowledge.KnowledgeList:input_type -> template.ListRequest
|
|
|
|
- 10, // 13: template.knowledge.KnowledgeEdit:input_type -> template.KnowledgeEditReq
|
|
|
|
- 9, // 14: template.knowledge.KnowledgeInfo:input_type -> template.KnowledgeEntity
|
|
|
|
- 12, // 15: template.knowledge.KnowledgeDel:input_type -> template.KnowledgeDelReq
|
|
|
|
- 3, // 16: template.knowledge.FindAnswer:input_type -> template.FindAnswerReq
|
|
|
|
- 3, // 17: template.knowledge.RecommendAnswer:input_type -> template.FindAnswerReq
|
|
|
|
- 13, // 18: template.knowledge.CommonPhrasesAdd:input_type -> template.CommonPhrasesAddReq
|
|
|
|
- 14, // 19: template.knowledge.CommonPhrasesInfo:input_type -> template.CommonPhrasesInfoReq
|
|
|
|
- 15, // 20: template.knowledge.CommonPhrasesList:input_type -> template.CommonPhrasesListReq
|
|
|
|
- 14, // 21: template.knowledge.CommonPhrasesDel:input_type -> template.CommonPhrasesInfoReq
|
|
|
|
- 20, // 22: template.knowledge.CommonPhraseClassList:input_type -> template.CommonPhrasesClassListReq
|
|
|
|
- 24, // 23: template.knowledge.CommonPhraseQuery:input_type -> template.CommonPhraseQueryReq
|
|
|
|
- 2, // 24: template.knowledge.KnowledgeAdd:output_type -> template.AddResponse
|
|
|
|
- 8, // 25: template.knowledge.KnowledgeList:output_type -> template.ListResponse
|
|
|
|
- 2, // 26: template.knowledge.KnowledgeEdit:output_type -> template.AddResponse
|
|
|
|
- 11, // 27: template.knowledge.KnowledgeInfo:output_type -> template.InfoResponse
|
|
|
|
- 2, // 28: template.knowledge.KnowledgeDel:output_type -> template.AddResponse
|
|
|
|
- 4, // 29: template.knowledge.FindAnswer:output_type -> template.FindAnswerResp
|
|
|
|
- 5, // 30: template.knowledge.RecommendAnswer:output_type -> template.RecommendAnswerResp
|
|
|
|
- 2, // 31: template.knowledge.CommonPhrasesAdd:output_type -> template.AddResponse
|
|
|
|
- 17, // 32: template.knowledge.CommonPhrasesInfo:output_type -> template.CommonPhrasesInfoResp
|
|
|
|
- 19, // 33: template.knowledge.CommonPhrasesList:output_type -> template.CommonPhrasesListResp
|
|
|
|
- 2, // 34: template.knowledge.CommonPhrasesDel:output_type -> template.AddResponse
|
|
|
|
- 23, // 35: template.knowledge.CommonPhraseClassList:output_type -> template.CommonPhrasesClassListResp
|
|
|
|
- 25, // 36: template.knowledge.CommonPhraseQuery:output_type -> template.CommonPhraseQueryResp
|
|
|
|
- 24, // [24:37] is the sub-list for method output_type
|
|
|
|
- 11, // [11:24] is the sub-list for method input_type
|
|
|
|
- 11, // [11:11] is the sub-list for extension type_name
|
|
|
|
- 11, // [11:11] is the sub-list for extension extendee
|
|
|
|
- 0, // [0:11] is the sub-list for field type_name
|
|
|
|
|
|
+ 27, // 11: template.KeywordListResp.data:type_name -> template.KeywordList
|
|
|
|
+ 1, // 12: template.knowledge.KnowledgeAdd:input_type -> template.AddRequest
|
|
|
|
+ 7, // 13: template.knowledge.KnowledgeList:input_type -> template.ListRequest
|
|
|
|
+ 10, // 14: template.knowledge.KnowledgeEdit:input_type -> template.KnowledgeEditReq
|
|
|
|
+ 9, // 15: template.knowledge.KnowledgeInfo:input_type -> template.KnowledgeEntity
|
|
|
|
+ 12, // 16: template.knowledge.KnowledgeDel:input_type -> template.KnowledgeDelReq
|
|
|
|
+ 3, // 17: template.knowledge.FindAnswer:input_type -> template.FindAnswerReq
|
|
|
|
+ 3, // 18: template.knowledge.RecommendAnswer:input_type -> template.FindAnswerReq
|
|
|
|
+ 13, // 19: template.knowledge.CommonPhrasesAdd:input_type -> template.CommonPhrasesAddReq
|
|
|
|
+ 14, // 20: template.knowledge.CommonPhrasesInfo:input_type -> template.CommonPhrasesInfoReq
|
|
|
|
+ 15, // 21: template.knowledge.CommonPhrasesList:input_type -> template.CommonPhrasesListReq
|
|
|
|
+ 14, // 22: template.knowledge.CommonPhrasesDel:input_type -> template.CommonPhrasesInfoReq
|
|
|
|
+ 20, // 23: template.knowledge.CommonPhraseClassList:input_type -> template.CommonPhrasesClassListReq
|
|
|
|
+ 24, // 24: template.knowledge.CommonPhraseQuery:input_type -> template.CommonPhraseQueryReq
|
|
|
|
+ 24, // 25: template.knowledge.KeywordList:input_type -> template.CommonPhraseQueryReq
|
|
|
|
+ 2, // 26: template.knowledge.KnowledgeAdd:output_type -> template.AddResponse
|
|
|
|
+ 8, // 27: template.knowledge.KnowledgeList:output_type -> template.ListResponse
|
|
|
|
+ 2, // 28: template.knowledge.KnowledgeEdit:output_type -> template.AddResponse
|
|
|
|
+ 11, // 29: template.knowledge.KnowledgeInfo:output_type -> template.InfoResponse
|
|
|
|
+ 2, // 30: template.knowledge.KnowledgeDel:output_type -> template.AddResponse
|
|
|
|
+ 4, // 31: template.knowledge.FindAnswer:output_type -> template.FindAnswerResp
|
|
|
|
+ 5, // 32: template.knowledge.RecommendAnswer:output_type -> template.RecommendAnswerResp
|
|
|
|
+ 2, // 33: template.knowledge.CommonPhrasesAdd:output_type -> template.AddResponse
|
|
|
|
+ 17, // 34: template.knowledge.CommonPhrasesInfo:output_type -> template.CommonPhrasesInfoResp
|
|
|
|
+ 19, // 35: template.knowledge.CommonPhrasesList:output_type -> template.CommonPhrasesListResp
|
|
|
|
+ 2, // 36: template.knowledge.CommonPhrasesDel:output_type -> template.AddResponse
|
|
|
|
+ 23, // 37: template.knowledge.CommonPhraseClassList:output_type -> template.CommonPhrasesClassListResp
|
|
|
|
+ 25, // 38: template.knowledge.CommonPhraseQuery:output_type -> template.CommonPhraseQueryResp
|
|
|
|
+ 26, // 39: template.knowledge.KeywordList:output_type -> template.KeywordListResp
|
|
|
|
+ 26, // [26:40] is the sub-list for method output_type
|
|
|
|
+ 12, // [12:26] is the sub-list for method input_type
|
|
|
|
+ 12, // [12:12] is the sub-list for extension type_name
|
|
|
|
+ 12, // [12:12] is the sub-list for extension extendee
|
|
|
|
+ 0, // [0:12] is the sub-list for field type_name
|
|
}
|
|
}
|
|
|
|
|
|
func init() { file_knowledge_proto_init() }
|
|
func init() { file_knowledge_proto_init() }
|
|
@@ -2358,6 +2502,30 @@ func file_knowledge_proto_init() {
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ file_knowledge_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
+ switch v := v.(*KeywordListResp); i {
|
|
|
|
+ case 0:
|
|
|
|
+ return &v.state
|
|
|
|
+ case 1:
|
|
|
|
+ return &v.sizeCache
|
|
|
|
+ case 2:
|
|
|
|
+ return &v.unknownFields
|
|
|
|
+ default:
|
|
|
|
+ return nil
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ file_knowledge_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
+ switch v := v.(*KeywordList); i {
|
|
|
|
+ case 0:
|
|
|
|
+ return &v.state
|
|
|
|
+ case 1:
|
|
|
|
+ return &v.sizeCache
|
|
|
|
+ case 2:
|
|
|
|
+ return &v.unknownFields
|
|
|
|
+ default:
|
|
|
|
+ return nil
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
type x struct{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
out := protoimpl.TypeBuilder{
|
|
@@ -2365,7 +2533,7 @@ func file_knowledge_proto_init() {
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_knowledge_proto_rawDesc,
|
|
RawDescriptor: file_knowledge_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumEnums: 0,
|
|
- NumMessages: 26,
|
|
|
|
|
|
+ NumMessages: 28,
|
|
NumExtensions: 0,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
NumServices: 1,
|
|
},
|
|
},
|
|
@@ -2378,541 +2546,3 @@ func file_knowledge_proto_init() {
|
|
file_knowledge_proto_goTypes = nil
|
|
file_knowledge_proto_goTypes = nil
|
|
file_knowledge_proto_depIdxs = nil
|
|
file_knowledge_proto_depIdxs = nil
|
|
}
|
|
}
|
|
-
|
|
|
|
-// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
-var _ context.Context
|
|
|
|
-var _ grpc.ClientConnInterface
|
|
|
|
-
|
|
|
|
-// This is a compile-time assertion to ensure that this generated file
|
|
|
|
-// is compatible with the grpc package it is being compiled against.
|
|
|
|
-const _ = grpc.SupportPackageIsVersion6
|
|
|
|
-
|
|
|
|
-// KnowledgeClient is the client API for Knowledge service.
|
|
|
|
-//
|
|
|
|
-// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
-type KnowledgeClient interface {
|
|
|
|
- //知识新增
|
|
|
|
- KnowledgeAdd(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
|
|
|
|
- //知识列表
|
|
|
|
- KnowledgeList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
|
|
|
|
- //知识编辑
|
|
|
|
- KnowledgeEdit(ctx context.Context, in *KnowledgeEditReq, opts ...grpc.CallOption) (*AddResponse, error)
|
|
|
|
- //知识详情
|
|
|
|
- KnowledgeInfo(ctx context.Context, in *KnowledgeEntity, opts ...grpc.CallOption) (*InfoResponse, error)
|
|
|
|
- //知识删除
|
|
|
|
- KnowledgeDel(ctx context.Context, in *KnowledgeDelReq, opts ...grpc.CallOption) (*AddResponse, error)
|
|
|
|
- //根据问题匹配答案
|
|
|
|
- FindAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*FindAnswerResp, error)
|
|
|
|
- //推荐答案
|
|
|
|
- RecommendAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*RecommendAnswerResp, error)
|
|
|
|
- //客服话术添加、编辑
|
|
|
|
- CommonPhrasesAdd(ctx context.Context, in *CommonPhrasesAddReq, opts ...grpc.CallOption) (*AddResponse, error)
|
|
|
|
- //客服话术详情
|
|
|
|
- CommonPhrasesInfo(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*CommonPhrasesInfoResp, error)
|
|
|
|
- //客服话术列表
|
|
|
|
- CommonPhrasesList(ctx context.Context, in *CommonPhrasesListReq, opts ...grpc.CallOption) (*CommonPhrasesListResp, error)
|
|
|
|
- //客服话术删除
|
|
|
|
- CommonPhrasesDel(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*AddResponse, error)
|
|
|
|
- //客服话术分类查询
|
|
|
|
- CommonPhraseClassList(ctx context.Context, in *CommonPhrasesClassListReq, opts ...grpc.CallOption) (*CommonPhrasesClassListResp, error)
|
|
|
|
- //客服输入文字,匹配话术
|
|
|
|
- CommonPhraseQuery(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*CommonPhraseQueryResp, error)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-type knowledgeClient struct {
|
|
|
|
- cc grpc.ClientConnInterface
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func NewKnowledgeClient(cc grpc.ClientConnInterface) KnowledgeClient {
|
|
|
|
- return &knowledgeClient{cc}
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) KnowledgeAdd(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) {
|
|
|
|
- out := new(AddResponse)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeAdd", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) KnowledgeList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
|
|
|
|
- out := new(ListResponse)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeList", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) KnowledgeEdit(ctx context.Context, in *KnowledgeEditReq, opts ...grpc.CallOption) (*AddResponse, error) {
|
|
|
|
- out := new(AddResponse)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeEdit", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) KnowledgeInfo(ctx context.Context, in *KnowledgeEntity, opts ...grpc.CallOption) (*InfoResponse, error) {
|
|
|
|
- out := new(InfoResponse)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeInfo", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) KnowledgeDel(ctx context.Context, in *KnowledgeDelReq, opts ...grpc.CallOption) (*AddResponse, error) {
|
|
|
|
- out := new(AddResponse)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeDel", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) FindAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*FindAnswerResp, error) {
|
|
|
|
- out := new(FindAnswerResp)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/FindAnswer", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) RecommendAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*RecommendAnswerResp, error) {
|
|
|
|
- out := new(RecommendAnswerResp)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/RecommendAnswer", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) CommonPhrasesAdd(ctx context.Context, in *CommonPhrasesAddReq, opts ...grpc.CallOption) (*AddResponse, error) {
|
|
|
|
- out := new(AddResponse)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesAdd", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) CommonPhrasesInfo(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*CommonPhrasesInfoResp, error) {
|
|
|
|
- out := new(CommonPhrasesInfoResp)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesInfo", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) CommonPhrasesList(ctx context.Context, in *CommonPhrasesListReq, opts ...grpc.CallOption) (*CommonPhrasesListResp, error) {
|
|
|
|
- out := new(CommonPhrasesListResp)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesList", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) CommonPhrasesDel(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*AddResponse, error) {
|
|
|
|
- out := new(AddResponse)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesDel", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) CommonPhraseClassList(ctx context.Context, in *CommonPhrasesClassListReq, opts ...grpc.CallOption) (*CommonPhrasesClassListResp, error) {
|
|
|
|
- out := new(CommonPhrasesClassListResp)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhraseClassList", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (c *knowledgeClient) CommonPhraseQuery(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*CommonPhraseQueryResp, error) {
|
|
|
|
- out := new(CommonPhraseQueryResp)
|
|
|
|
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhraseQuery", in, out, opts...)
|
|
|
|
- if err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- return out, nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-// KnowledgeServer is the server API for Knowledge service.
|
|
|
|
-type KnowledgeServer interface {
|
|
|
|
- //知识新增
|
|
|
|
- KnowledgeAdd(context.Context, *AddRequest) (*AddResponse, error)
|
|
|
|
- //知识列表
|
|
|
|
- KnowledgeList(context.Context, *ListRequest) (*ListResponse, error)
|
|
|
|
- //知识编辑
|
|
|
|
- KnowledgeEdit(context.Context, *KnowledgeEditReq) (*AddResponse, error)
|
|
|
|
- //知识详情
|
|
|
|
- KnowledgeInfo(context.Context, *KnowledgeEntity) (*InfoResponse, error)
|
|
|
|
- //知识删除
|
|
|
|
- KnowledgeDel(context.Context, *KnowledgeDelReq) (*AddResponse, error)
|
|
|
|
- //根据问题匹配答案
|
|
|
|
- FindAnswer(context.Context, *FindAnswerReq) (*FindAnswerResp, error)
|
|
|
|
- //推荐答案
|
|
|
|
- RecommendAnswer(context.Context, *FindAnswerReq) (*RecommendAnswerResp, error)
|
|
|
|
- //客服话术添加、编辑
|
|
|
|
- CommonPhrasesAdd(context.Context, *CommonPhrasesAddReq) (*AddResponse, error)
|
|
|
|
- //客服话术详情
|
|
|
|
- CommonPhrasesInfo(context.Context, *CommonPhrasesInfoReq) (*CommonPhrasesInfoResp, error)
|
|
|
|
- //客服话术列表
|
|
|
|
- CommonPhrasesList(context.Context, *CommonPhrasesListReq) (*CommonPhrasesListResp, error)
|
|
|
|
- //客服话术删除
|
|
|
|
- CommonPhrasesDel(context.Context, *CommonPhrasesInfoReq) (*AddResponse, error)
|
|
|
|
- //客服话术分类查询
|
|
|
|
- CommonPhraseClassList(context.Context, *CommonPhrasesClassListReq) (*CommonPhrasesClassListResp, error)
|
|
|
|
- //客服输入文字,匹配话术
|
|
|
|
- CommonPhraseQuery(context.Context, *CommonPhraseQueryReq) (*CommonPhraseQueryResp, error)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-// UnimplementedKnowledgeServer can be embedded to have forward compatible implementations.
|
|
|
|
-type UnimplementedKnowledgeServer struct {
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (*UnimplementedKnowledgeServer) KnowledgeAdd(context.Context, *AddRequest) (*AddResponse, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeAdd not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) KnowledgeList(context.Context, *ListRequest) (*ListResponse, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeList not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) KnowledgeEdit(context.Context, *KnowledgeEditReq) (*AddResponse, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeEdit not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) KnowledgeInfo(context.Context, *KnowledgeEntity) (*InfoResponse, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeInfo not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) KnowledgeDel(context.Context, *KnowledgeDelReq) (*AddResponse, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeDel not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) FindAnswer(context.Context, *FindAnswerReq) (*FindAnswerResp, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method FindAnswer not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) RecommendAnswer(context.Context, *FindAnswerReq) (*RecommendAnswerResp, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method RecommendAnswer not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) CommonPhrasesAdd(context.Context, *CommonPhrasesAddReq) (*AddResponse, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesAdd not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) CommonPhrasesInfo(context.Context, *CommonPhrasesInfoReq) (*CommonPhrasesInfoResp, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesInfo not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) CommonPhrasesList(context.Context, *CommonPhrasesListReq) (*CommonPhrasesListResp, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesList not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) CommonPhrasesDel(context.Context, *CommonPhrasesInfoReq) (*AddResponse, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesDel not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) CommonPhraseClassList(context.Context, *CommonPhrasesClassListReq) (*CommonPhrasesClassListResp, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhraseClassList not implemented")
|
|
|
|
-}
|
|
|
|
-func (*UnimplementedKnowledgeServer) CommonPhraseQuery(context.Context, *CommonPhraseQueryReq) (*CommonPhraseQueryResp, error) {
|
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhraseQuery not implemented")
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func RegisterKnowledgeServer(s *grpc.Server, srv KnowledgeServer) {
|
|
|
|
- s.RegisterService(&_Knowledge_serviceDesc, srv)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_KnowledgeAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(AddRequest)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeAdd(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/KnowledgeAdd",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeAdd(ctx, req.(*AddRequest))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_KnowledgeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(ListRequest)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeList(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/KnowledgeList",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeList(ctx, req.(*ListRequest))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_KnowledgeEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(KnowledgeEditReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeEdit(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/KnowledgeEdit",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeEdit(ctx, req.(*KnowledgeEditReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_KnowledgeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(KnowledgeEntity)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeInfo(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/KnowledgeInfo",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeInfo(ctx, req.(*KnowledgeEntity))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_KnowledgeDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(KnowledgeDelReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeDel(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/KnowledgeDel",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).KnowledgeDel(ctx, req.(*KnowledgeDelReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_FindAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(FindAnswerReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).FindAnswer(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/FindAnswer",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).FindAnswer(ctx, req.(*FindAnswerReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_RecommendAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(FindAnswerReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).RecommendAnswer(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/RecommendAnswer",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).RecommendAnswer(ctx, req.(*FindAnswerReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_CommonPhrasesAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(CommonPhrasesAddReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhrasesAdd(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/CommonPhrasesAdd",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhrasesAdd(ctx, req.(*CommonPhrasesAddReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_CommonPhrasesInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(CommonPhrasesInfoReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhrasesInfo(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/CommonPhrasesInfo",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhrasesInfo(ctx, req.(*CommonPhrasesInfoReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_CommonPhrasesList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(CommonPhrasesListReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhrasesList(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/CommonPhrasesList",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhrasesList(ctx, req.(*CommonPhrasesListReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_CommonPhrasesDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(CommonPhrasesInfoReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhrasesDel(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/CommonPhrasesDel",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhrasesDel(ctx, req.(*CommonPhrasesInfoReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_CommonPhraseClassList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(CommonPhrasesClassListReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhraseClassList(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/CommonPhraseClassList",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhraseClassList(ctx, req.(*CommonPhrasesClassListReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func _Knowledge_CommonPhraseQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
- in := new(CommonPhraseQueryReq)
|
|
|
|
- if err := dec(in); err != nil {
|
|
|
|
- return nil, err
|
|
|
|
- }
|
|
|
|
- if interceptor == nil {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhraseQuery(ctx, in)
|
|
|
|
- }
|
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
|
- Server: srv,
|
|
|
|
- FullMethod: "/template.knowledge/CommonPhraseQuery",
|
|
|
|
- }
|
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
- return srv.(KnowledgeServer).CommonPhraseQuery(ctx, req.(*CommonPhraseQueryReq))
|
|
|
|
- }
|
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-var _Knowledge_serviceDesc = grpc.ServiceDesc{
|
|
|
|
- ServiceName: "template.knowledge",
|
|
|
|
- HandlerType: (*KnowledgeServer)(nil),
|
|
|
|
- Methods: []grpc.MethodDesc{
|
|
|
|
- {
|
|
|
|
- MethodName: "KnowledgeAdd",
|
|
|
|
- Handler: _Knowledge_KnowledgeAdd_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "KnowledgeList",
|
|
|
|
- Handler: _Knowledge_KnowledgeList_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "KnowledgeEdit",
|
|
|
|
- Handler: _Knowledge_KnowledgeEdit_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "KnowledgeInfo",
|
|
|
|
- Handler: _Knowledge_KnowledgeInfo_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "KnowledgeDel",
|
|
|
|
- Handler: _Knowledge_KnowledgeDel_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "FindAnswer",
|
|
|
|
- Handler: _Knowledge_FindAnswer_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "RecommendAnswer",
|
|
|
|
- Handler: _Knowledge_RecommendAnswer_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "CommonPhrasesAdd",
|
|
|
|
- Handler: _Knowledge_CommonPhrasesAdd_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "CommonPhrasesInfo",
|
|
|
|
- Handler: _Knowledge_CommonPhrasesInfo_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "CommonPhrasesList",
|
|
|
|
- Handler: _Knowledge_CommonPhrasesList_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "CommonPhrasesDel",
|
|
|
|
- Handler: _Knowledge_CommonPhrasesDel_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "CommonPhraseClassList",
|
|
|
|
- Handler: _Knowledge_CommonPhraseClassList_Handler,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- MethodName: "CommonPhraseQuery",
|
|
|
|
- Handler: _Knowledge_CommonPhraseQuery_Handler,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- Streams: []grpc.StreamDesc{},
|
|
|
|
- Metadata: "knowledge.proto",
|
|
|
|
-}
|
|
|