|
@@ -1340,6 +1340,234 @@ func (x *CommonPhrasesListResp) GetData() *CommonPhrasesList {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+type CommonPhrasesClassListReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
|
|
|
+ EntId int64 `protobuf:"varint,2,opt,name=entId,proto3" json:"entId,omitempty"` //企业id
|
|
|
+ AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListReq) Reset() {
|
|
|
+ *x = CommonPhrasesClassListReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_knowledge_proto_msgTypes[20]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*CommonPhrasesClassListReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_knowledge_proto_msgTypes[20]
|
|
|
+ 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 CommonPhrasesClassListReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*CommonPhrasesClassListReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_knowledge_proto_rawDescGZIP(), []int{20}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListReq) GetQuery() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Query
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListReq) GetEntId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.EntId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListReq) GetAppId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.AppId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type Content struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Content) Reset() {
|
|
|
+ *x = Content{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_knowledge_proto_msgTypes[21]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Content) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*Content) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *Content) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_knowledge_proto_msgTypes[21]
|
|
|
+ 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 Content.ProtoReflect.Descriptor instead.
|
|
|
+func (*Content) Descriptor() ([]byte, []int) {
|
|
|
+ return file_knowledge_proto_rawDescGZIP(), []int{21}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Content) GetContent() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Content
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type CommonPhrasesClassListData struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Classify string `protobuf:"bytes,1,opt,name=classify,proto3" json:"classify,omitempty"`
|
|
|
+ ClassList []*Content `protobuf:"bytes,2,rep,name=classList,proto3" json:"classList,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListData) Reset() {
|
|
|
+ *x = CommonPhrasesClassListData{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_knowledge_proto_msgTypes[22]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListData) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*CommonPhrasesClassListData) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListData) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_knowledge_proto_msgTypes[22]
|
|
|
+ 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 CommonPhrasesClassListData.ProtoReflect.Descriptor instead.
|
|
|
+func (*CommonPhrasesClassListData) Descriptor() ([]byte, []int) {
|
|
|
+ return file_knowledge_proto_rawDescGZIP(), []int{22}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListData) GetClassify() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Classify
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListData) GetClassList() []*Content {
|
|
|
+ if x != nil {
|
|
|
+ return x.ClassList
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type CommonPhrasesClassListResp 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 []*CommonPhrasesClassListData `protobuf:"bytes,3,rep,name=Data,proto3" json:"Data,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListResp) Reset() {
|
|
|
+ *x = CommonPhrasesClassListResp{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_knowledge_proto_msgTypes[23]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListResp) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*CommonPhrasesClassListResp) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListResp) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_knowledge_proto_msgTypes[23]
|
|
|
+ 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 CommonPhrasesClassListResp.ProtoReflect.Descriptor instead.
|
|
|
+func (*CommonPhrasesClassListResp) Descriptor() ([]byte, []int) {
|
|
|
+ return file_knowledge_proto_rawDescGZIP(), []int{23}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListResp) GetErrorCode() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ErrorCode
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListResp) GetErrorMsg() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ErrorMsg
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CommonPhrasesClassListResp) GetData() []*CommonPhrasesClassListData {
|
|
|
+ if x != nil {
|
|
|
+ return x.Data
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
var File_knowledge_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_knowledge_proto_rawDesc = []byte{
|
|
@@ -1487,58 +1715,89 @@ var file_knowledge_proto_rawDesc = []byte{
|
|
|
0x4d, 0x73, 0x67, 0x12, 0x2f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
|
0x0b, 0x32, 0x1b, 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, 0x04,
|
|
|
- 0x64, 0x61, 0x74, 0x61, 0x32, 0x9f, 0x06, 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,
|
|
|
+ 0x64, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x19, 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, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
|
+ 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64,
|
|
|
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a,
|
|
|
+ 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
|
|
|
+ 0x70, 0x49, 0x64, 0x22, 0x23, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18,
|
|
|
+ 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x69, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x6d,
|
|
|
+ 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69,
|
|
|
+ 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
|
|
|
+ 0x66, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
|
|
|
+ 0x66, 0x79, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x18,
|
|
|
+ 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
|
|
|
+ 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c,
|
|
|
+ 0x69, 0x73, 0x74, 0x22, 0x92, 0x01, 0x0a, 0x1a, 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, 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, 0x38,
|
|
|
+ 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 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, 0x44, 0x61,
|
|
|
+ 0x74, 0x61, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x32, 0x83, 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,
|
|
|
- 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, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x6b, 0x6e, 0x6f, 0x77,
|
|
|
- 0x6c, 0x65, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 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, 0x42, 0x0d,
|
|
|
+ 0x5a, 0x0b, 0x2e, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70,
|
|
|
+ 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -1553,28 +1812,32 @@ func file_knowledge_proto_rawDescGZIP() []byte {
|
|
|
return file_knowledge_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_knowledge_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
|
|
+var file_knowledge_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
|
|
var file_knowledge_proto_goTypes = []interface{}{
|
|
|
- (*Question)(nil), // 0: template.Question
|
|
|
- (*AddRequest)(nil), // 1: template.AddRequest
|
|
|
- (*AddResponse)(nil), // 2: template.AddResponse
|
|
|
- (*FindAnswerReq)(nil), // 3: template.FindAnswerReq
|
|
|
- (*FindAnswerResp)(nil), // 4: template.FindAnswerResp
|
|
|
- (*RecommendAnswerResp)(nil), // 5: template.RecommendAnswerResp
|
|
|
- (*ListData)(nil), // 6: template.ListData
|
|
|
- (*ListRequest)(nil), // 7: template.ListRequest
|
|
|
- (*ListResponse)(nil), // 8: template.ListResponse
|
|
|
- (*KnowledgeEntity)(nil), // 9: template.KnowledgeEntity
|
|
|
- (*KnowledgeEditReq)(nil), // 10: template.KnowledgeEditReq
|
|
|
- (*InfoResponse)(nil), // 11: template.InfoResponse
|
|
|
- (*KnowledgeDelReq)(nil), // 12: template.KnowledgeDelReq
|
|
|
- (*CommonPhrasesAddReq)(nil), // 13: template.CommonPhrasesAddReq
|
|
|
- (*CommonPhrasesInfoReq)(nil), // 14: template.CommonPhrasesInfoReq
|
|
|
- (*CommonPhrasesListReq)(nil), // 15: template.CommonPhrasesListReq
|
|
|
- (*CommonPhrases)(nil), // 16: template.CommonPhrases
|
|
|
- (*CommonPhrasesInfoResp)(nil), // 17: template.CommonPhrasesInfoResp
|
|
|
- (*CommonPhrasesList)(nil), // 18: template.CommonPhrasesList
|
|
|
- (*CommonPhrasesListResp)(nil), // 19: template.CommonPhrasesListResp
|
|
|
+ (*Question)(nil), // 0: template.Question
|
|
|
+ (*AddRequest)(nil), // 1: template.AddRequest
|
|
|
+ (*AddResponse)(nil), // 2: template.AddResponse
|
|
|
+ (*FindAnswerReq)(nil), // 3: template.FindAnswerReq
|
|
|
+ (*FindAnswerResp)(nil), // 4: template.FindAnswerResp
|
|
|
+ (*RecommendAnswerResp)(nil), // 5: template.RecommendAnswerResp
|
|
|
+ (*ListData)(nil), // 6: template.ListData
|
|
|
+ (*ListRequest)(nil), // 7: template.ListRequest
|
|
|
+ (*ListResponse)(nil), // 8: template.ListResponse
|
|
|
+ (*KnowledgeEntity)(nil), // 9: template.KnowledgeEntity
|
|
|
+ (*KnowledgeEditReq)(nil), // 10: template.KnowledgeEditReq
|
|
|
+ (*InfoResponse)(nil), // 11: template.InfoResponse
|
|
|
+ (*KnowledgeDelReq)(nil), // 12: template.KnowledgeDelReq
|
|
|
+ (*CommonPhrasesAddReq)(nil), // 13: template.CommonPhrasesAddReq
|
|
|
+ (*CommonPhrasesInfoReq)(nil), // 14: template.CommonPhrasesInfoReq
|
|
|
+ (*CommonPhrasesListReq)(nil), // 15: template.CommonPhrasesListReq
|
|
|
+ (*CommonPhrases)(nil), // 16: template.CommonPhrases
|
|
|
+ (*CommonPhrasesInfoResp)(nil), // 17: template.CommonPhrasesInfoResp
|
|
|
+ (*CommonPhrasesList)(nil), // 18: template.CommonPhrasesList
|
|
|
+ (*CommonPhrasesListResp)(nil), // 19: template.CommonPhrasesListResp
|
|
|
+ (*CommonPhrasesClassListReq)(nil), // 20: template.CommonPhrasesClassListReq
|
|
|
+ (*Content)(nil), // 21: template.Content
|
|
|
+ (*CommonPhrasesClassListData)(nil), // 22: template.CommonPhrasesClassListData
|
|
|
+ (*CommonPhrasesClassListResp)(nil), // 23: template.CommonPhrasesClassListResp
|
|
|
}
|
|
|
var file_knowledge_proto_depIdxs = []int32{
|
|
|
0, // 0: template.FindAnswerResp.data:type_name -> template.Question
|
|
@@ -1585,33 +1848,37 @@ var file_knowledge_proto_depIdxs = []int32{
|
|
|
16, // 5: template.CommonPhrasesInfoResp.data:type_name -> template.CommonPhrases
|
|
|
16, // 6: template.CommonPhrasesList.Data:type_name -> template.CommonPhrases
|
|
|
18, // 7: template.CommonPhrasesListResp.data:type_name -> template.CommonPhrasesList
|
|
|
- 1, // 8: template.knowledge.KnowledgeAdd:input_type -> template.AddRequest
|
|
|
- 7, // 9: template.knowledge.KnowledgeList:input_type -> template.ListRequest
|
|
|
- 10, // 10: template.knowledge.KnowledgeEdit:input_type -> template.KnowledgeEditReq
|
|
|
- 9, // 11: template.knowledge.KnowledgeInfo:input_type -> template.KnowledgeEntity
|
|
|
- 12, // 12: template.knowledge.KnowledgeDel:input_type -> template.KnowledgeDelReq
|
|
|
- 3, // 13: template.knowledge.FindAnswer:input_type -> template.FindAnswerReq
|
|
|
- 3, // 14: template.knowledge.RecommendAnswer:input_type -> template.FindAnswerReq
|
|
|
- 13, // 15: template.knowledge.CommonPhrasesAdd:input_type -> template.CommonPhrasesAddReq
|
|
|
- 14, // 16: template.knowledge.CommonPhrasesInfo:input_type -> template.CommonPhrasesInfoReq
|
|
|
- 15, // 17: template.knowledge.CommonPhrasesList:input_type -> template.CommonPhrasesListReq
|
|
|
- 14, // 18: template.knowledge.CommonPhrasesDel:input_type -> template.CommonPhrasesInfoReq
|
|
|
- 2, // 19: template.knowledge.KnowledgeAdd:output_type -> template.AddResponse
|
|
|
- 8, // 20: template.knowledge.KnowledgeList:output_type -> template.ListResponse
|
|
|
- 2, // 21: template.knowledge.KnowledgeEdit:output_type -> template.AddResponse
|
|
|
- 11, // 22: template.knowledge.KnowledgeInfo:output_type -> template.InfoResponse
|
|
|
- 2, // 23: template.knowledge.KnowledgeDel:output_type -> template.AddResponse
|
|
|
- 4, // 24: template.knowledge.FindAnswer:output_type -> template.FindAnswerResp
|
|
|
- 5, // 25: template.knowledge.RecommendAnswer:output_type -> template.RecommendAnswerResp
|
|
|
- 2, // 26: template.knowledge.CommonPhrasesAdd:output_type -> template.AddResponse
|
|
|
- 17, // 27: template.knowledge.CommonPhrasesInfo:output_type -> template.CommonPhrasesInfoResp
|
|
|
- 19, // 28: template.knowledge.CommonPhrasesList:output_type -> template.CommonPhrasesListResp
|
|
|
- 2, // 29: template.knowledge.CommonPhrasesDel:output_type -> template.AddResponse
|
|
|
- 19, // [19:30] is the sub-list for method output_type
|
|
|
- 8, // [8:19] is the sub-list for method input_type
|
|
|
- 8, // [8:8] is the sub-list for extension type_name
|
|
|
- 8, // [8:8] is the sub-list for extension extendee
|
|
|
- 0, // [0:8] is the sub-list for field type_name
|
|
|
+ 21, // 8: template.CommonPhrasesClassListData.classList:type_name -> template.Content
|
|
|
+ 22, // 9: template.CommonPhrasesClassListResp.Data:type_name -> template.CommonPhrasesClassListData
|
|
|
+ 1, // 10: template.knowledge.KnowledgeAdd:input_type -> template.AddRequest
|
|
|
+ 7, // 11: template.knowledge.KnowledgeList:input_type -> template.ListRequest
|
|
|
+ 10, // 12: template.knowledge.KnowledgeEdit:input_type -> template.KnowledgeEditReq
|
|
|
+ 9, // 13: template.knowledge.KnowledgeInfo:input_type -> template.KnowledgeEntity
|
|
|
+ 12, // 14: template.knowledge.KnowledgeDel:input_type -> template.KnowledgeDelReq
|
|
|
+ 3, // 15: template.knowledge.FindAnswer:input_type -> template.FindAnswerReq
|
|
|
+ 3, // 16: template.knowledge.RecommendAnswer:input_type -> template.FindAnswerReq
|
|
|
+ 13, // 17: template.knowledge.CommonPhrasesAdd:input_type -> template.CommonPhrasesAddReq
|
|
|
+ 14, // 18: template.knowledge.CommonPhrasesInfo:input_type -> template.CommonPhrasesInfoReq
|
|
|
+ 15, // 19: template.knowledge.CommonPhrasesList:input_type -> template.CommonPhrasesListReq
|
|
|
+ 14, // 20: template.knowledge.CommonPhrasesDel:input_type -> template.CommonPhrasesInfoReq
|
|
|
+ 20, // 21: template.knowledge.CommonPhraseClassList:input_type -> template.CommonPhrasesClassListReq
|
|
|
+ 2, // 22: template.knowledge.KnowledgeAdd:output_type -> template.AddResponse
|
|
|
+ 8, // 23: template.knowledge.KnowledgeList:output_type -> template.ListResponse
|
|
|
+ 2, // 24: template.knowledge.KnowledgeEdit:output_type -> template.AddResponse
|
|
|
+ 11, // 25: template.knowledge.KnowledgeInfo:output_type -> template.InfoResponse
|
|
|
+ 2, // 26: template.knowledge.KnowledgeDel:output_type -> template.AddResponse
|
|
|
+ 4, // 27: template.knowledge.FindAnswer:output_type -> template.FindAnswerResp
|
|
|
+ 5, // 28: template.knowledge.RecommendAnswer:output_type -> template.RecommendAnswerResp
|
|
|
+ 2, // 29: template.knowledge.CommonPhrasesAdd:output_type -> template.AddResponse
|
|
|
+ 17, // 30: template.knowledge.CommonPhrasesInfo:output_type -> template.CommonPhrasesInfoResp
|
|
|
+ 19, // 31: template.knowledge.CommonPhrasesList:output_type -> template.CommonPhrasesListResp
|
|
|
+ 2, // 32: template.knowledge.CommonPhrasesDel:output_type -> template.AddResponse
|
|
|
+ 23, // 33: template.knowledge.CommonPhraseClassList:output_type -> template.CommonPhrasesClassListResp
|
|
|
+ 22, // [22:34] is the sub-list for method output_type
|
|
|
+ 10, // [10:22] is the sub-list for method input_type
|
|
|
+ 10, // [10:10] is the sub-list for extension type_name
|
|
|
+ 10, // [10:10] is the sub-list for extension extendee
|
|
|
+ 0, // [0:10] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_knowledge_proto_init() }
|
|
@@ -1860,6 +2127,54 @@ func file_knowledge_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_knowledge_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*CommonPhrasesClassListReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_knowledge_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*Content); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_knowledge_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*CommonPhrasesClassListData); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_knowledge_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*CommonPhrasesClassListResp); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
@@ -1867,7 +2182,7 @@ func file_knowledge_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_knowledge_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 20,
|
|
|
+ NumMessages: 24,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|
|
@@ -1915,6 +2230,8 @@ type KnowledgeClient interface {
|
|
|
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)
|
|
|
}
|
|
|
|
|
|
type knowledgeClient struct {
|
|
@@ -2024,6 +2341,15 @@ func (c *knowledgeClient) CommonPhrasesDel(ctx context.Context, in *CommonPhrase
|
|
|
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
|
|
|
+}
|
|
|
+
|
|
|
// KnowledgeServer is the server API for Knowledge service.
|
|
|
type KnowledgeServer interface {
|
|
|
//知识新增
|
|
@@ -2048,6 +2374,8 @@ type KnowledgeServer interface {
|
|
|
CommonPhrasesList(context.Context, *CommonPhrasesListReq) (*CommonPhrasesListResp, error)
|
|
|
//客服话术删除
|
|
|
CommonPhrasesDel(context.Context, *CommonPhrasesInfoReq) (*AddResponse, error)
|
|
|
+ //客服话术分类查询
|
|
|
+ CommonPhraseClassList(context.Context, *CommonPhrasesClassListReq) (*CommonPhrasesClassListResp, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedKnowledgeServer can be embedded to have forward compatible implementations.
|
|
@@ -2087,6 +2415,9 @@ func (*UnimplementedKnowledgeServer) CommonPhrasesList(context.Context, *CommonP
|
|
|
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 RegisterKnowledgeServer(s *grpc.Server, srv KnowledgeServer) {
|
|
|
s.RegisterService(&_Knowledge_serviceDesc, srv)
|
|
@@ -2290,6 +2621,24 @@ func _Knowledge_CommonPhrasesDel_Handler(srv interface{}, ctx context.Context, d
|
|
|
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)
|
|
|
+}
|
|
|
+
|
|
|
var _Knowledge_serviceDesc = grpc.ServiceDesc{
|
|
|
ServiceName: "template.knowledge",
|
|
|
HandlerType: (*KnowledgeServer)(nil),
|
|
@@ -2338,6 +2687,10 @@ var _Knowledge_serviceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "CommonPhrasesDel",
|
|
|
Handler: _Knowledge_CommonPhrasesDel_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "CommonPhraseClassList",
|
|
|
+ Handler: _Knowledge_CommonPhraseClassList_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "knowledge.proto",
|