update init lp_category,

This commit is contained in:
louiscklaw
2025-04-19 06:42:55 +08:00
parent 2c20496a13
commit 1c865595bf
88 changed files with 10716 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
import { COL_QUIZ_LISTENINGS } from '@/constants';
import type { RecordModel } from 'pocketbase';
import { pb } from '@/lib/pb';
export default function getAllQuizListenings(): Promise<RecordModel[]> {
return pb.collection(COL_QUIZ_LISTENINGS).getFullList();
}

View File

@@ -0,0 +1,9 @@
// REQ0006
import { COL_QUIZ_LISTENINGS } from '@/constants';
import { pb } from '@/lib/pb';
export default async function GetAllCount(): Promise<number> {
const { totalItems: count } = await pb.collection(COL_QUIZ_LISTENINGS).getList(1, 9999, {});
return count;
}