Files
aurak/server/src/tenant/tenant.store.ts
T
Developer 0a9588abb7 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
2026-04-23 17:19:11 +08:00

9 lines
192 B
TypeScript

import { AsyncLocalStorage } from 'async_hooks';
export interface TenantContext {
tenantId: string;
userId?: string;
}
export const tenantStore = new AsyncLocalStorage<TenantContext>();