260427_01_ENH: 리스트 다이얼로그 및 리스트 작업 시작
This commit is contained in:
@@ -1,27 +1,82 @@
|
||||
import {PageRequest} from "@/types/common";
|
||||
import {EnumLikeKey, EnumLikeValue} from "@/lib/utils";
|
||||
import {ListHeaderAssignConst, ListHeaderConst} from "@/const/listConst";
|
||||
|
||||
export enum ListHeaderGrade {
|
||||
IMMUTABLE = 0,
|
||||
DEFAULT = 1,
|
||||
NORMAL = 2,
|
||||
RESERVED = 1,
|
||||
COMMON = 10,
|
||||
}
|
||||
|
||||
export enum ListHeaderType {
|
||||
TEL = 21,
|
||||
EMAIL = 31,
|
||||
FILE_UPLOAD = 81,
|
||||
TEXT = 91,
|
||||
export type ListHeaderTypeKey = EnumLikeKey<typeof ListHeaderConst>;
|
||||
export type ListHeaderType = EnumLikeValue<typeof ListHeaderConst>;
|
||||
|
||||
export type ListHeaderAssignTypeKey = EnumLikeKey<typeof ListHeaderAssignConst>;
|
||||
export type ListHeaderAssignType = EnumLikeValue<typeof ListHeaderAssignConst>;
|
||||
|
||||
|
||||
export enum ListIsUse {
|
||||
UNUSABLE = 0, //0 : 사용 안함
|
||||
USABLE = 1, //1 : 사용
|
||||
TEST = 9, //9 : TEST
|
||||
}
|
||||
|
||||
export type listHder = {
|
||||
export type listHeader = {
|
||||
listHderId: number;
|
||||
listHderOrder: number;
|
||||
listHderGrad: ListHeaderGrade;
|
||||
listHderNm: string;
|
||||
listHderTy: ListHeaderType
|
||||
useFilter: boolean;
|
||||
useView: boolean;
|
||||
useColView: boolean;
|
||||
useIntrvwerView: boolean;
|
||||
useIntrvwerEdit: boolean;
|
||||
regUser: string;
|
||||
regDt: string;
|
||||
modUser?: string;
|
||||
modDt?: string;
|
||||
}
|
||||
}
|
||||
|
||||
export type ListFilter = {
|
||||
sidSet: string[];
|
||||
listUseSet: ListIsUse[];
|
||||
assignUserMap: Record<ListHeaderAssignType, string[]>;
|
||||
memo: string; // 또는 memo?: string | null
|
||||
otherItems: Record<number, string[]>;
|
||||
};
|
||||
|
||||
export type ListSearchRequest = {
|
||||
listFilter: ListFilter;
|
||||
pageRequest: PageRequest;
|
||||
}
|
||||
|
||||
export type ListResultBase = {
|
||||
lastResultCd: number;
|
||||
lastResultDt: string;
|
||||
attemptCount: number;
|
||||
};
|
||||
|
||||
export type ListSendResult = ListResultBase & {
|
||||
lastResultLabel: string;
|
||||
}
|
||||
|
||||
export type ListContactResult = ListResultBase & {
|
||||
lastUser: string;
|
||||
assignUser: string;
|
||||
};
|
||||
|
||||
export type ListSearchBase = {
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
use: ListIsUse;
|
||||
assignList: Record<ListHeaderAssignType, string>;
|
||||
memo: string;
|
||||
itemList: Record<number, string>;
|
||||
};
|
||||
|
||||
export type ListSearchWithResult = ListSearchBase & {
|
||||
contactResult: ListContactResult;
|
||||
interviewResult: ListContactResult;
|
||||
surveyResult: ListResultBase;
|
||||
};
|
||||
|
||||
export type ListSearchWithFullResult = ListSearchWithResult & {
|
||||
mailSendResult: ListSendResult;
|
||||
smsSendResult?: ListSendResult;
|
||||
};
|
||||
@@ -41,11 +41,11 @@ export type UserInfoSaveRequest = {
|
||||
memo?: string
|
||||
}
|
||||
|
||||
export type UserUploadResponse = {
|
||||
export type ExcelUploadResult = {
|
||||
totalCount: number;
|
||||
successCount: number;
|
||||
failCount: number;
|
||||
hasErrorFile: boolean;
|
||||
errorFileName: string | null;
|
||||
errorFileBase64: string | null;
|
||||
};
|
||||
errorFileName: string;
|
||||
errorFileBase64: string;
|
||||
}
|
||||
Reference in New Issue
Block a user