260115_02_ENH : 로그인 오류 수정 및 템플릿 생성 연동 완료
This commit is contained in:
@@ -6,6 +6,13 @@ export type DataVerification = {
|
||||
|
||||
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;
|
||||
|
||||
27
src/types/list.ts
Normal file
27
src/types/list.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
export enum ListHeaderGrade {
|
||||
IMMUTABLE = 0,
|
||||
DEFAULT = 1,
|
||||
NORMAL = 2,
|
||||
}
|
||||
|
||||
export enum ListHeaderType {
|
||||
TEL = 21,
|
||||
EMAIL = 31,
|
||||
FILE_UPLOAD = 81,
|
||||
TEXT = 91,
|
||||
}
|
||||
|
||||
export type listHder = {
|
||||
listHderId: number;
|
||||
listHderGrad: ListHeaderGrade;
|
||||
listHderNm: string;
|
||||
listHderTy: ListHeaderType
|
||||
useFilter: boolean;
|
||||
useView: boolean;
|
||||
useIntrvwerView: boolean;
|
||||
useIntrvwerEdit: boolean;
|
||||
regUser: string;
|
||||
regDt: string;
|
||||
modUser?: string;
|
||||
modDt?: string;
|
||||
}
|
||||
40
src/types/messageTemplate.ts
Normal file
40
src/types/messageTemplate.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
export enum MessageType {
|
||||
EMAIL = 11,
|
||||
SMS = 21,
|
||||
LMS_MMS = 22
|
||||
}
|
||||
|
||||
export enum ChannelType{
|
||||
EMAIL = 1,
|
||||
SMS = 2
|
||||
}
|
||||
|
||||
export const SMS_TYPE_ARRAY = [MessageType.SMS, MessageType.LMS_MMS] as const;
|
||||
export type SmsType = typeof SMS_TYPE_ARRAY[number];
|
||||
|
||||
export type TemplateSummary = {
|
||||
tmplatIdx: number;
|
||||
tmplatNm: string;
|
||||
}
|
||||
|
||||
export type TemplateBasic = {
|
||||
tmplatIdx?: number;
|
||||
itrntPrjctCd: string;
|
||||
tmplatNm: string;
|
||||
tmplatBody: string;
|
||||
sendNm: string;
|
||||
};
|
||||
|
||||
export type TemplateSms = TemplateBasic & {
|
||||
tmplatTy: SmsType;
|
||||
tmplatTitle?: string;
|
||||
sendTel: string;
|
||||
}
|
||||
|
||||
export type TemplateEmail = TemplateBasic & {
|
||||
tmplatTy: MessageType.EMAIL;
|
||||
tmplatTitle: string;
|
||||
sendEml: string;
|
||||
}
|
||||
|
||||
export type Template = TemplateSms | TemplateEmail;
|
||||
@@ -1,4 +1,24 @@
|
||||
import {ProjectStatus, SurveyType, ResultCodeType} from "@/const/projectConst";
|
||||
import {PageRequest} from "@/types/common";
|
||||
import {ChannelType} from "@/types/messageTemplate";
|
||||
|
||||
export enum SurveyType {
|
||||
NONE = 0,
|
||||
KON = 1,
|
||||
KIWI = 2,
|
||||
EXTERNAL = 99,
|
||||
}
|
||||
|
||||
export enum ProjectStatus {
|
||||
WAITING = 0,
|
||||
IN_PROGRESS = 1,
|
||||
COMPLETED = 10,
|
||||
}
|
||||
|
||||
export enum ResultCodeType {
|
||||
CONTACT = 0,
|
||||
INTERVIEW = 1,
|
||||
SURVEY = 2,
|
||||
}
|
||||
|
||||
export type ProjectInfo = {
|
||||
prjctIdx: number; // Long
|
||||
@@ -46,11 +66,7 @@ export type ProjectListRequest = {
|
||||
ownerDeptList: string[];
|
||||
ownerFwList: string[];
|
||||
|
||||
pageIndex: number;
|
||||
pageSize: number;
|
||||
|
||||
sortBy: string;
|
||||
sortDir: "asc" | "desc";
|
||||
pageRequest: PageRequest;
|
||||
}
|
||||
|
||||
export type ProjectOwnerResponse = {
|
||||
@@ -81,4 +97,10 @@ export type ResultCode = {
|
||||
resultCdTy:ResultCodeType;
|
||||
resultCd:number;
|
||||
resultCdLbl:string;
|
||||
}
|
||||
|
||||
export type ProjectMainTemplateUpdateRequest = {
|
||||
prjctIdx:number;
|
||||
chnnlTy:ChannelType;
|
||||
tmplatIdx:number|null;
|
||||
}
|
||||
Reference in New Issue
Block a user