package logic import ( "context" "github.com/zeromicro/go-zero/core/logx" "knowledgeBase/api/knowledge/internal/svc" "knowledgeBase/api/knowledge/internal/types" ) type KnowledgeListLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewKnowledgeListLogic(ctx context.Context, svcCtx *svc.ServiceContext) KnowledgeListLogic { return KnowledgeListLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *KnowledgeListLogic) KnowledgeList(req types.ListReq) (*types.CommonRes, error) { // todo: add your logic here and delete this line return &types.CommonRes{}, nil }