feat: implement QuestionBank CRUD with pagination and template query

- Add pagination support to findAll (page, limit query params)
- Add findByTemplateId method to service
- Add GET /by-template/:templateId endpoint to controller
- Service already includes CRUD for QuestionBank and QuestionBankItem
This commit is contained in:
Developer
2026-04-23 17:19:11 +08:00
commit 0a9588abb7
492 changed files with 112453 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
import React from 'react';
interface CardProps {
children: React.ReactNode;
className?: string;
}
export const Card: React.FC<CardProps> = ({ children, className = '' }) => {
return (
<div className={`bg-white rounded-lg border border-slate-200 shadow-sm ${className}`}>
{children}
</div>
);
};
export const CardHeader: React.FC<CardProps> = ({ children, className = '' }) => {
return (
<div className={`p-4 border-b border-slate-100 ${className}`}>
{children}
</div>
);
};
export const CardTitle: React.FC<CardProps> = ({ children, className = '' }) => {
return (
<h3 className={`text-lg font-semibold text-slate-800 ${className}`}>
{children}
</h3>
);
};
export const CardContent: React.FC<CardProps> = ({ children, className = '' }) => {
return (
<div className={`p-4 ${className}`}>
{children}
</div>
);
};