commonphraseclasslistlogic.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package logic
  2. import (
  3. "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/service"
  4. "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/knowledge"
  5. "context"
  6. "github.com/zeromicro/go-zero/core/logx"
  7. "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/svc"
  8. )
  9. type CommonPhraseClassListLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewCommonPhraseClassListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CommonPhraseClassListLogic {
  15. return &CommonPhraseClassListLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. // CommonPhraseClassList 客服话术分类查询
  22. func (l *CommonPhraseClassListLogic) CommonPhraseClassList(in *knowledge.CommonPhrasesClassListReq) (*knowledge.CommonPhrasesClassListResp, error) {
  23. // todo: add your logic here and delete this line
  24. result := &knowledge.CommonPhrasesClassListResp{}
  25. c := service.CommonPhrasesService{}
  26. commonPhrasesClassList := c.CommonPhrasesClassList(in)
  27. result.ErrorCode = 0
  28. result.Data = commonPhrasesClassList
  29. return result, nil
  30. }