260506_01_fst: First Commit

This commit is contained in:
2026-05-06 17:00:45 +09:00
parent dd5cac3d78
commit 934a71e47a
76 changed files with 9488 additions and 222 deletions

17
src/types/auth.ts Normal file
View File

@@ -0,0 +1,17 @@
export type LoginRequest = {
userId: string;
userPw: string;
};
export type LoginResponse = {
accessToken: string;
user: LoginUser;
};
export type LoginUser = {
userId: string;
userName: string;
userCmpn: string;
userTeam: string;
userRole: number;
};

28
src/types/common.ts Normal file
View File

@@ -0,0 +1,28 @@
export type DataVerification = {
success: boolean;
fieldName : string;
errMessage: string;
}
export type RouteContext = { params: Promise<{ slug?: string[] }> };
export type PageRequest = {
pageIndex: number;
pageSize: number;
sortBy: string;
sortDir: "asc" | "desc";
}
export type PageResponse<T> = {
content: T[];
totalElements: number;
totalPages: number;
pageIndex: number;
pageSize: number;
numberOfElements: number;
first: boolean;
last: boolean;
empty: boolean;
}
export type SelectedMap = Record<string, string>;

5
src/types/kfpa.ts Normal file
View File

@@ -0,0 +1,5 @@
import {CATEGORY_KEY_MAP, DIV_KEY_MAP} from "@/config/kfpaConfig";
export type CategoryKey = keyof typeof CATEGORY_KEY_MAP;
export type DivKey = keyof typeof DIV_KEY_MAP;