knowledgelistlogic.go 836 B

123456789101112131415161718192021222324252627282930313233343536
  1. package logic
  2. import (
  3. "context"
  4. <<<<<<< HEAD
  5. "github.com/zeromicro/go-zero/core/logx"
  6. "knowledgeBase/rpc/knowledge/knowledgeclient"
  7. =======
  8. "knowledgeBase/rpc/knowledge/knowledgeclient"
  9. "github.com/tal-tech/go-zero/core/logx"
  10. >>>>>>> origin/master
  11. "knowledgeBase/rpc/knowledge/internal/svc"
  12. )
  13. type KnowledgeListLogic struct {
  14. ctx context.Context
  15. svcCtx *svc.ServiceContext
  16. logx.Logger
  17. }
  18. func NewKnowledgeListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *KnowledgeListLogic {
  19. return &KnowledgeListLogic{
  20. ctx: ctx,
  21. svcCtx: svcCtx,
  22. Logger: logx.WithContext(ctx),
  23. }
  24. }
  25. // 知识列表
  26. func (l *KnowledgeListLogic) KnowledgeList(in *knowledgeclient.ListRequest) (*knowledgeclient.ListResponse, error) {
  27. // todo: add your logic here and delete this line
  28. return &knowledgeclient.ListResponse{}, nil
  29. }