테스트용 채번규칙 API 추가: numberingRuleController에 테이블+컬럼 기반 채번규칙 조회 및 테스트 테이블에 채번규칙 저장 기능을 추가하였습니다. 이를 통해 개발 및 테스트 환경에서 채번규칙을 보다 쉽게 관리할 수 있도록 개선하였습니다.

This commit is contained in:
kjs
2026-01-21 13:54:14 +09:00
parent 4781a17b71
commit 16cb1ea1af
8 changed files with 664 additions and 5 deletions
+23 -1
View File
@@ -17,7 +17,8 @@ export type InputType =
| "checkbox" // 체크박스
| "radio" // 라디오버튼
| "image" // 이미지
| "file"; // 파일
| "file" // 파일
| "numbering"; // 채번 (자동번호 생성)
// 입력 타입 옵션 정의
export interface InputTypeOption {
@@ -113,6 +114,13 @@ export const INPUT_TYPE_OPTIONS: InputTypeOption[] = [
category: "basic",
icon: "File",
},
{
value: "numbering",
label: "채번",
description: "자동 번호 생성 (테이블 설정 기반)",
category: "basic",
icon: "Hash",
},
];
// 카테고리별 입력 타입 그룹화
@@ -180,6 +188,11 @@ export const INPUT_TYPE_DEFAULT_CONFIGS: Record<InputType, Record<string, any>>
accept: "*/*",
maxSize: 10485760, // 10MB
},
numbering: {
placeholder: "자동 생성됩니다",
readOnly: true,
autoGenerate: true,
},
};
// 레거시 웹 타입 → 입력 타입 매핑
@@ -217,6 +230,9 @@ export const WEB_TYPE_TO_INPUT_TYPE: Record<string, InputType> = {
file: "file",
image: "image",
// 채번
numbering: "numbering",
// 기타 (기본값: text)
button: "text",
};
@@ -234,6 +250,7 @@ export const INPUT_TYPE_TO_WEB_TYPE: Record<InputType, string> = {
radio: "radio",
image: "image",
file: "file",
numbering: "numbering",
};
// 입력 타입 변환 함수
@@ -288,4 +305,9 @@ export const INPUT_TYPE_VALIDATION_RULES: Record<InputType, Record<string, any>>
type: "string",
required: false,
},
numbering: {
type: "string",
required: false,
autoGenerate: true,
},
};