// Code generated by goctl. DO NOT EDIT! // Source: knowledge.proto package server import ( "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/knowledgeclient" "context" "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/logic" "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/svc" ) type KnowledgeServer struct { svcCtx *svc.ServiceContext } func NewKnowledgeServer(svcCtx *svc.ServiceContext) *KnowledgeServer { return &KnowledgeServer{ svcCtx: svcCtx, } } // 知识新增 func (s *KnowledgeServer) KnowledgeAdd(ctx context.Context, in *knowledgeclient.AddRequest) (*knowledgeclient.AddResponse, error) { l := logic.NewKnowledgeAddLogic(ctx, s.svcCtx) return l.KnowledgeAdd(in) } // 知识列表 func (s *KnowledgeServer) KnowledgeList(ctx context.Context, in *knowledgeclient.ListRequest) (*knowledgeclient.ListResponse, error) { l := logic.NewKnowledgeListLogic(ctx, s.svcCtx) return l.KnowledgeList(in) } // 知识编辑 func (s *KnowledgeServer) KnowledgeEdit(ctx context.Context, in *knowledgeclient.KnowledgeEditReq) (*knowledgeclient.AddResponse, error) { l := logic.NewKnowledgeEditLogic(ctx, s.svcCtx) return l.KnowledgeEdit(in) } // 知识详情 func (s *KnowledgeServer) KnowledgeInfo(ctx context.Context, in *knowledgeclient.KnowledgeEntity) (*knowledgeclient.InfoResponse, error) { l := logic.NewKnowledgeInfoLogic(ctx, s.svcCtx) return l.KnowledgeInfo(in) } // 知识删除 func (s *KnowledgeServer) KnowledgeDel(ctx context.Context, in *knowledgeclient.KnowledgeDelReq) (*knowledgeclient.AddResponse, error) { l := logic.NewKnowledgeDelLogic(ctx, s.svcCtx) return l.KnowledgeDel(in) } // 根据问题匹配答案 func (s *KnowledgeServer) FindAnswer(ctx context.Context, in *knowledgeclient.FindAnswerReq) (*knowledgeclient.FindAnswerResp, error) { l := logic.NewFindAnswerLogic(ctx, s.svcCtx) return l.FindAnswer(in) } // 推荐答案 func (s *KnowledgeServer) RecommendAnswer(ctx context.Context, in *knowledgeclient.FindAnswerReq) (*knowledgeclient.RecommendAnswerResp, error) { l := logic.NewRecommendAnswerLogic(ctx, s.svcCtx) return l.RecommendAnswer(in) } // 客服话术添加、编辑 func (s *KnowledgeServer) CommonPhrasesAdd(ctx context.Context, in *knowledgeclient.CommonPhrasesAddReq) (*knowledgeclient.AddResponse, error) { l := logic.NewCommonPhrasesAddLogic(ctx, s.svcCtx) return l.CommonPhrasesAdd(in) } // 客服话术详情 func (s *KnowledgeServer) CommonPhrasesInfo(ctx context.Context, in *knowledgeclient.CommonPhrasesInfoReq) (*knowledgeclient.CommonPhrasesInfoResp, error) { l := logic.NewCommonPhrasesInfoLogic(ctx, s.svcCtx) return l.CommonPhrasesInfo(in) } // 客服话术列表 func (s *KnowledgeServer) CommonPhrasesList(ctx context.Context, in *knowledgeclient.CommonPhrasesListReq) (*knowledgeclient.CommonPhrasesListResp, error) { l := logic.NewCommonPhrasesListLogic(ctx, s.svcCtx) return l.CommonPhrasesList(in) } // 客服话术删除 func (s *KnowledgeServer) CommonPhrasesDel(ctx context.Context, in *knowledgeclient.CommonPhrasesInfoReq) (*knowledgeclient.AddResponse, error) { l := logic.NewCommonPhrasesDelLogic(ctx, s.svcCtx) return l.CommonPhrasesDel(in) } // 客服话术分类查询 func (s *KnowledgeServer) CommonPhraseClassList(ctx context.Context, in *knowledgeclient.CommonPhrasesClassListReq) (*knowledgeclient.CommonPhrasesClassListResp, error) { l := logic.NewCommonPhraseClassListLogic(ctx, s.svcCtx) return l.CommonPhraseClassList(in) }