package logic import ( "context" "github.com/zeromicro/go-zero/core/logx" "knowledgeBase/rpc/knowledge/knowledgeclient" "knowledgeBase/rpc/knowledge/internal/svc" ) type KnowledgeAddLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewKnowledgeAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *KnowledgeAddLogic { return &KnowledgeAddLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 知识新增 func (l *KnowledgeAddLogic) KnowledgeAdd(in *knowledgeclient.AddRequest) (*knowledgeclient.AddResponse, error) { // todo: add your logic here and delete this line return &knowledgeclient.AddResponse{}, nil }