package logic import ( "context" "github.com/zeromicro/go-zero/core/logx" "knowledgeBase/rpc/knowledge/knowledgeclient" "knowledgeBase/rpc/knowledge/internal/svc" ) type KnowledgeListLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewKnowledgeListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *KnowledgeListLogic { return &KnowledgeListLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 知识列表 func (l *KnowledgeListLogic) KnowledgeList(in *knowledgeclient.ListRequest) (*knowledgeclient.ListResponse, error) { // todo: add your logic here and delete this line return &knowledgeclient.ListResponse{}, nil }