123456789101112131415161718192021222324252627282930 |
- 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/knowledge"
- "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 *knowledge.CommonPhraseQueryReq) (*knowledge.KeywordListResp, error) {
- return service.NewSKeywordService(in).GetKeywordList()
- }
|