package logic import ( "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/service" "context" "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/svc" "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/knowledgeclient" "github.com/zeromicro/go-zero/core/logx" ) type KeywordListLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewKeywordListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *KeywordListLogic { return &KeywordListLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 聊天框 关键词信息 func (l *KeywordListLogic) KeywordList(in *knowledgeclient.CommonPhraseQueryReq) (*knowledgeclient.KeywordListResp, error) { return service.NewSKeywordService(in).GetKeywordList() }