package logic import ( "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/service" "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/knowledgeclient" "context" "github.com/zeromicro/go-zero/core/logx" "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/svc" ) type CommonPhrasesListLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewCommonPhrasesListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CommonPhrasesListLogic { return &CommonPhrasesListLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // CommonPhrasesList 客服话术列表 func (l *CommonPhrasesListLogic) CommonPhrasesList(in *knowledgeclient.CommonPhrasesListReq) (*knowledgeclient.CommonPhrasesListResp, error) { result := &knowledgeclient.CommonPhrasesListResp{} c := service.CommonPhrasesService{} commonPhrasesList := c.CommonPhrasesList(in) result.ErrorCode = 0 result.Data = commonPhrasesList return result, nil }