keywordlistlogic.go 836 B

123456789101112131415161718192021222324252627282930
  1. package logic
  2. import (
  3. "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/service"
  4. "context"
  5. "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/svc"
  6. "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/knowledgeclient"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type KeywordListLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewKeywordListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *KeywordListLogic {
  15. return &KeywordListLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. // 聊天框 关键词信息
  22. func (l *KeywordListLogic) KeywordList(in *knowledgeclient.CommonPhraseQueryReq) (*knowledgeclient.KeywordListResp, error) {
  23. return service.NewSKeywordService(in).GetKeywordList()
  24. }