upd: apaa aja aku lupa

This commit is contained in:
amel
2024-08-02 14:54:59 +08:00
parent 6a94bcc696
commit 96fc88efba
17 changed files with 196 additions and 107 deletions

View File

@@ -4,7 +4,7 @@ import { NextRequest } from "next/server";
export async function getAllUser(req: NextRequest) {
try {
const searchParams = req.nextUrl.searchParams;
const idGroup = "2";
const idGroup = searchParams.get("idGroup");;
const idVillage = "121212";
const active = searchParams.get("active");
const idPosition = searchParams.get("idPosition");

View File

@@ -1,3 +1,4 @@
import { TypeUser } from './lib/type_user';
import { apiUser } from "./api/api_user";
import createLogUser from "./log/fun/createLogUser";
import ViewEditProfile from "./profile/view/view_edit_profile";
@@ -7,3 +8,4 @@ export { ViewProfile };
export { ViewEditProfile };
export { apiUser };
export { createLogUser };
export type { TypeUser }

View File

@@ -0,0 +1,11 @@
export type TypeUser = {
id: string
name: string
nik: string
phone: string
email: string
gender: string
isActive: boolean,
group: string,
position: string
}[]