260624_03_ENH: label 일괄 관리 및 문자 발송 팝업에 사용가능 변수 추가

This commit is contained in:
2026-06-24 10:39:47 +09:00
parent 438e6258dc
commit c4f8e630ea
9 changed files with 224 additions and 111 deletions

View File

@@ -0,0 +1,44 @@
export const USER_FIELD_LABELS = {
userId: "ID",
userName: "이름",
userCmpn: "소속",
userTeam: "팀",
userRole: "권한",
memo: "메모",
userArea: "지역",
gender: "성별",
userGender: "성별",
userAge: "연령",
userTel: "연락처",
userEmail: "이메일",
userHasCar: "자차 여부",
userGenre: "장르",
} as const;
export const PERFORMANCE_FIELD_LABELS = {
id: "연번",
businessType: "사업유형",
performanceGenre: "분야(장르)",
performanceArea: "지역",
artistName: "단체(인)명",
performanceName: "사업명",
performanceStartMonth: "사업 수행 월",
performanceDtInfo: "사업 일정",
performanceTimeInfo: "운영 시간",
ticketReservationStatus: "티켓 예약",
ticketReservationMemo: "티켓 비고",
performanceMemo: "메모",
monitoringDate: "모니터링 일정",
monitoringTimeInfo: "모니터링 시간",
monitoringAddress: "방문 장소",
performanceId: "사업 ID",
monitoringPaymentDate: "요원 비용지급일",
} as const;
export const SMS_PARAM_LABELS = {
...USER_FIELD_LABELS,
...PERFORMANCE_FIELD_LABELS,
} as const;
export const getSmsParamLabel = (key: string) =>
SMS_PARAM_LABELS[key as keyof typeof SMS_PARAM_LABELS] ?? key;