## feat
- Create function
- Get list by status id
- Get one vote by id
### No issuue
This commit is contained in:
2024-02-09 17:50:38 +08:00
parent e6c120bf75
commit 0dd8e287f4
94 changed files with 1522 additions and 224 deletions

View File

@@ -1,9 +1,20 @@
import { Vote_Status } from "@/app_modules/vote";
import { Vote_Status } from "@/app_modules/voting";
import { Vote_getListByStatusId } from "@/app_modules/voting/fun/get/get_list_status_by_status_id";
export default async function Page() {
const listPublish = await Vote_getListByStatusId("1");
const listReview = await Vote_getListByStatusId("2");
const listDraft = await Vote_getListByStatusId("3");
const listReject = await Vote_getListByStatusId("4");
return (
<>
<Vote_Status />
<Vote_Status
listPublish={listPublish as any}
listReview={listReview as any}
listDraft={listDraft as any}
listReject={listReject as any}
/>
</>
);
}