package logic import ( "context" "knowledgeBase/rpc/knowledge/knowledgeclient" "github.com/tal-tech/go-zero/core/logx" "knowledgeBase/rpc/knowledge/internal/svc" ) type KnowledgEditLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewKnowledgEditLogic(ctx context.Context, svcCtx *svc.ServiceContext) *KnowledgEditLogic { return &KnowledgEditLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 知识编辑 func (l *KnowledgEditLogic) KnowledgEdit(in *knowledgeclient.KnowledgeEntity) (*knowledgeclient.AddResponse, error) { // todo: add your logic here and delete this line return &knowledgeclient.AddResponse{}, nil }