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 CommonPhrasesListLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewCommonPhrasesListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CommonPhrasesListLogic {
- return &CommonPhrasesListLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // CommonPhrasesList 客服话术列表
- func (l *CommonPhrasesListLogic) CommonPhrasesList(in *knowledge.CommonPhrasesListReq) (*knowledge.CommonPhrasesListResp, error) {
- result := &knowledge.CommonPhrasesListResp{}
- c := service.CommonPhrasesService{}
- commonPhrasesList := c.CommonPhrasesList(in)
- result.ErrorCode = 0
- result.Data = commonPhrasesList
- return result, nil
- }
|