// Code generated by goctl. DO NOT EDIT! // Source: knowledge.proto package knowledgeclient import ( "context" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( Knowledge 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) // 聊天框 关键词信息 KeywordList(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*KeywordListResp, error) } defaultKnowledge struct { cli zrpc.Client } ) func NewKnowledge(cli zrpc.Client) Knowledge { return &defaultKnowledge{ cli: cli, } } // 知识新增 func (m *defaultKnowledge) KnowledgeAdd(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.KnowledgeAdd(ctx, in, opts...) } // 知识列表 func (m *defaultKnowledge) KnowledgeList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.KnowledgeList(ctx, in, opts...) } // 知识编辑 func (m *defaultKnowledge) KnowledgeEdit(ctx context.Context, in *KnowledgeEditReq, opts ...grpc.CallOption) (*AddResponse, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.KnowledgeEdit(ctx, in, opts...) } // 知识详情 func (m *defaultKnowledge) KnowledgeInfo(ctx context.Context, in *KnowledgeEntity, opts ...grpc.CallOption) (*InfoResponse, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.KnowledgeInfo(ctx, in, opts...) } // 知识删除 func (m *defaultKnowledge) KnowledgeDel(ctx context.Context, in *KnowledgeDelReq, opts ...grpc.CallOption) (*AddResponse, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.KnowledgeDel(ctx, in, opts...) } // 根据问题匹配答案 func (m *defaultKnowledge) FindAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*FindAnswerResp, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.FindAnswer(ctx, in, opts...) } // 推荐答案 func (m *defaultKnowledge) RecommendAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*RecommendAnswerResp, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.RecommendAnswer(ctx, in, opts...) } // 客服话术添加、编辑 func (m *defaultKnowledge) CommonPhrasesAdd(ctx context.Context, in *CommonPhrasesAddReq, opts ...grpc.CallOption) (*AddResponse, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.CommonPhrasesAdd(ctx, in, opts...) } // 客服话术详情 func (m *defaultKnowledge) CommonPhrasesInfo(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*CommonPhrasesInfoResp, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.CommonPhrasesInfo(ctx, in, opts...) } // 客服话术列表 func (m *defaultKnowledge) CommonPhrasesList(ctx context.Context, in *CommonPhrasesListReq, opts ...grpc.CallOption) (*CommonPhrasesListResp, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.CommonPhrasesList(ctx, in, opts...) } // 客服话术删除 func (m *defaultKnowledge) CommonPhrasesDel(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*AddResponse, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.CommonPhrasesDel(ctx, in, opts...) } // 客服话术分类查询 func (m *defaultKnowledge) CommonPhraseClassList(ctx context.Context, in *CommonPhrasesClassListReq, opts ...grpc.CallOption) (*CommonPhrasesClassListResp, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.CommonPhraseClassList(ctx, in, opts...) } // 客服输入文字,匹配话术 func (m *defaultKnowledge) CommonPhraseQuery(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*CommonPhraseQueryResp, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.CommonPhraseQuery(ctx, in, opts...) } // 聊天框 关键词信息 func (m *defaultKnowledge) KeywordList(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*KeywordListResp, error) { client := NewKnowledgeClient(m.cli.Conn()) return client.KeywordList(ctx, in, opts...) }