260506_01_fst: First Commit
This commit is contained in:
17
src/types/auth.ts
Normal file
17
src/types/auth.ts
Normal 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
28
src/types/common.ts
Normal 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
5
src/types/kfpa.ts
Normal 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;
|
||||
Reference in New Issue
Block a user