knowledgeaddlogic.go 695 B

123456789101112131415161718192021222324252627282930
  1. package logic
  2. import (
  3. "context"
  4. "github.com/zeromicro/go-zero/core/logx"
  5. "knowledgeBase/rpc/knowledge/knowledgeclient"
  6. "knowledgeBase/rpc/knowledge/internal/svc"
  7. )
  8. type KnowledgeAddLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewKnowledgeAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *KnowledgeAddLogic {
  14. return &KnowledgeAddLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. // 知识新增
  21. func (l *KnowledgeAddLogic) KnowledgeAdd(in *knowledgeclient.AddRequest) (*knowledgeclient.AddResponse, error) {
  22. // todo: add your logic here and delete this line
  23. return &knowledgeclient.AddResponse{}, nil
  24. }