upd: apaa aja aku lupa
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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 }
|
||||
|
||||
11
src/module/user/lib/type_user.ts
Normal file
11
src/module/user/lib/type_user.ts
Normal 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
|
||||
}[]
|
||||
Reference in New Issue
Block a user