1234567891011121314151617181920212223242526272829303132333435 |
- package logic
- import (
- "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/service"
- "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/knowledge"
- "context"
- "github.com/zeromicro/go-zero/core/logx"
- "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/rpc/knowledge/internal/svc"
- )
- type CommonPhraseClassListLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewCommonPhraseClassListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CommonPhraseClassListLogic {
- return &CommonPhraseClassListLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // CommonPhraseClassList 客服话术分类查询
- func (l *CommonPhraseClassListLogic) CommonPhraseClassList(in *knowledge.CommonPhrasesClassListReq) (*knowledge.CommonPhrasesClassListResp, error) {
- // todo: add your logic here and delete this line
- result := &knowledge.CommonPhrasesClassListResp{}
- c := service.CommonPhrasesService{}
- commonPhrasesClassList := c.CommonPhrasesClassList(in)
- result.ErrorCode = 0
- result.Data = commonPhrasesClassList
- return result, nil
- }
|