291 lines
12 KiB
PHP
291 lines
12 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 게시판 템플릿 설정
|
||
|
|
*
|
||
|
|
* 시스템 게시판: 본사 ↔ 테넌트 소통용 (모든 테넌트 공용)
|
||
|
|
* 테넌트 게시판: 각 테넌트 내부용
|
||
|
|
*/
|
||
|
|
|
||
|
|
return [
|
||
|
|
|
||
|
|
/*
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
| 기본 필드 안내 (모든 게시판 공통)
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
| 게시글 작성 시 자동으로 포함되는 필드들
|
||
|
|
*/
|
||
|
|
'base_fields' => [
|
||
|
|
['name' => '제목', 'key' => 'title', 'type' => 'text', 'required' => true],
|
||
|
|
['name' => '내용', 'key' => 'content', 'type' => 'editor', 'required' => true],
|
||
|
|
['name' => '작성자', 'key' => 'user_id', 'type' => 'auto', 'required' => true],
|
||
|
|
['name' => '조회수', 'key' => 'views', 'type' => 'auto', 'required' => false],
|
||
|
|
['name' => '공지 여부', 'key' => 'is_notice', 'type' => 'checkbox', 'required' => false],
|
||
|
|
['name' => '비밀글 여부', 'key' => 'is_secret', 'type' => 'checkbox', 'required' => false],
|
||
|
|
],
|
||
|
|
|
||
|
|
/*
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
| 시스템 게시판 템플릿
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
| 본사 ↔ 테넌트 소통용 게시판
|
||
|
|
*/
|
||
|
|
'system' => [
|
||
|
|
|
||
|
|
'notice' => [
|
||
|
|
'name' => '공지사항',
|
||
|
|
'description' => '본사에서 모든 테넌트에게 전달하는 중요 공지',
|
||
|
|
'icon' => 'M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z',
|
||
|
|
'board_type' => 'notice',
|
||
|
|
'editor_type' => 'wysiwyg',
|
||
|
|
'allow_files' => true,
|
||
|
|
'max_file_count' => 5,
|
||
|
|
'max_file_size' => 20480,
|
||
|
|
'extra_settings' => [
|
||
|
|
'allow_comment' => false,
|
||
|
|
'allow_secret' => false,
|
||
|
|
'write_roles' => ['admin', 'manager'],
|
||
|
|
'read_roles' => ['*'],
|
||
|
|
],
|
||
|
|
'default_fields' => [
|
||
|
|
[
|
||
|
|
'name' => '카테고리',
|
||
|
|
'field_key' => 'category',
|
||
|
|
'field_type' => 'select',
|
||
|
|
'is_required' => false,
|
||
|
|
'field_meta' => [
|
||
|
|
'options' => ['일반', '긴급', '점검', '업데이트'],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
|
||
|
|
'qna' => [
|
||
|
|
'name' => '1:1 문의',
|
||
|
|
'description' => '테넌트와 본사 간 1:1 질문/답변',
|
||
|
|
'icon' => 'M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4',
|
||
|
|
'board_type' => 'qna',
|
||
|
|
'editor_type' => 'wysiwyg',
|
||
|
|
'allow_files' => true,
|
||
|
|
'max_file_count' => 10,
|
||
|
|
'max_file_size' => 20480,
|
||
|
|
'extra_settings' => [
|
||
|
|
'allow_comment' => true,
|
||
|
|
'allow_secret' => true,
|
||
|
|
'default_secret' => true,
|
||
|
|
'only_author_view' => true,
|
||
|
|
'write_roles' => ['*'],
|
||
|
|
'read_roles' => ['*'],
|
||
|
|
],
|
||
|
|
'default_fields' => [
|
||
|
|
[
|
||
|
|
'name' => '문의 유형',
|
||
|
|
'field_key' => 'inquiry_type',
|
||
|
|
'field_type' => 'select',
|
||
|
|
'is_required' => true,
|
||
|
|
'field_meta' => [
|
||
|
|
'options' => ['이용문의', '결제문의', '기능요청', '오류신고', '기타'],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'name' => '답변 상태',
|
||
|
|
'field_key' => 'answer_status',
|
||
|
|
'field_type' => 'select',
|
||
|
|
'is_required' => false,
|
||
|
|
'field_meta' => [
|
||
|
|
'options' => ['대기중', '답변완료'],
|
||
|
|
'default' => '대기중',
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
|
||
|
|
'faq' => [
|
||
|
|
'name' => 'FAQ',
|
||
|
|
'description' => '자주 묻는 질문과 답변',
|
||
|
|
'icon' => 'M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z',
|
||
|
|
'board_type' => 'faq',
|
||
|
|
'editor_type' => 'wysiwyg',
|
||
|
|
'allow_files' => false,
|
||
|
|
'max_file_count' => 0,
|
||
|
|
'max_file_size' => 0,
|
||
|
|
'extra_settings' => [
|
||
|
|
'allow_comment' => false,
|
||
|
|
'allow_secret' => false,
|
||
|
|
'use_category' => true,
|
||
|
|
'write_roles' => ['admin'],
|
||
|
|
'read_roles' => ['*'],
|
||
|
|
],
|
||
|
|
'default_fields' => [
|
||
|
|
[
|
||
|
|
'name' => '카테고리',
|
||
|
|
'field_key' => 'category',
|
||
|
|
'field_type' => 'select',
|
||
|
|
'is_required' => true,
|
||
|
|
'field_meta' => [
|
||
|
|
'options' => ['이용안내', '결제/환불', '기능안내', '계정관리', '기타'],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
|
||
|
|
'popup' => [
|
||
|
|
'name' => '팝업 공지',
|
||
|
|
'description' => '팝업으로 노출되는 긴급 공지',
|
||
|
|
'icon' => 'M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9',
|
||
|
|
'board_type' => 'popup',
|
||
|
|
'editor_type' => 'wysiwyg',
|
||
|
|
'allow_files' => true,
|
||
|
|
'max_file_count' => 3,
|
||
|
|
'max_file_size' => 10240,
|
||
|
|
'extra_settings' => [
|
||
|
|
'allow_comment' => false,
|
||
|
|
'allow_secret' => false,
|
||
|
|
'use_period' => true,
|
||
|
|
'write_roles' => ['admin'],
|
||
|
|
'read_roles' => ['*'],
|
||
|
|
],
|
||
|
|
'default_fields' => [
|
||
|
|
[
|
||
|
|
'name' => '노출 시작일',
|
||
|
|
'field_key' => 'start_date',
|
||
|
|
'field_type' => 'date',
|
||
|
|
'is_required' => true,
|
||
|
|
'field_meta' => [],
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'name' => '노출 종료일',
|
||
|
|
'field_key' => 'end_date',
|
||
|
|
'field_type' => 'date',
|
||
|
|
'is_required' => true,
|
||
|
|
'field_meta' => [],
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'name' => '팝업 위치',
|
||
|
|
'field_key' => 'position',
|
||
|
|
'field_type' => 'select',
|
||
|
|
'is_required' => false,
|
||
|
|
'field_meta' => [
|
||
|
|
'options' => ['중앙', '좌측상단', '우측상단', '좌측하단', '우측하단'],
|
||
|
|
'default' => '중앙',
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
|
||
|
|
],
|
||
|
|
|
||
|
|
/*
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
| 테넌트 게시판 템플릿
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
| 각 테넌트 내부용 게시판
|
||
|
|
*/
|
||
|
|
'tenant' => [
|
||
|
|
|
||
|
|
'free' => [
|
||
|
|
'name' => '자유게시판',
|
||
|
|
'description' => '자유롭게 소통하는 게시판',
|
||
|
|
'icon' => 'M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z',
|
||
|
|
'board_type' => 'free',
|
||
|
|
'editor_type' => 'wysiwyg',
|
||
|
|
'allow_files' => true,
|
||
|
|
'max_file_count' => 5,
|
||
|
|
'max_file_size' => 20480,
|
||
|
|
'extra_settings' => [
|
||
|
|
'allow_comment' => true,
|
||
|
|
'allow_secret' => true,
|
||
|
|
'write_roles' => ['*'],
|
||
|
|
'read_roles' => ['*'],
|
||
|
|
],
|
||
|
|
'default_fields' => [],
|
||
|
|
],
|
||
|
|
|
||
|
|
'gallery' => [
|
||
|
|
'name' => '갤러리',
|
||
|
|
'description' => '이미지 중심의 게시판',
|
||
|
|
'icon' => 'M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z',
|
||
|
|
'board_type' => 'gallery',
|
||
|
|
'editor_type' => 'wysiwyg',
|
||
|
|
'allow_files' => true,
|
||
|
|
'max_file_count' => 20,
|
||
|
|
'max_file_size' => 51200,
|
||
|
|
'extra_settings' => [
|
||
|
|
'allow_comment' => true,
|
||
|
|
'allow_secret' => false,
|
||
|
|
'thumbnail_size' => [200, 200],
|
||
|
|
'allowed_extensions' => ['jpg', 'jpeg', 'png', 'gif', 'webp'],
|
||
|
|
'write_roles' => ['*'],
|
||
|
|
'read_roles' => ['*'],
|
||
|
|
],
|
||
|
|
'default_fields' => [],
|
||
|
|
],
|
||
|
|
|
||
|
|
'download' => [
|
||
|
|
'name' => '자료실',
|
||
|
|
'description' => '파일 공유를 위한 게시판',
|
||
|
|
'icon' => 'M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z',
|
||
|
|
'board_type' => 'download',
|
||
|
|
'editor_type' => 'text',
|
||
|
|
'allow_files' => true,
|
||
|
|
'max_file_count' => 10,
|
||
|
|
'max_file_size' => 102400,
|
||
|
|
'extra_settings' => [
|
||
|
|
'allow_comment' => true,
|
||
|
|
'allow_secret' => false,
|
||
|
|
'write_roles' => ['admin', 'manager'],
|
||
|
|
'read_roles' => ['*'],
|
||
|
|
],
|
||
|
|
'default_fields' => [
|
||
|
|
[
|
||
|
|
'name' => '자료 유형',
|
||
|
|
'field_key' => 'file_type',
|
||
|
|
'field_type' => 'select',
|
||
|
|
'is_required' => false,
|
||
|
|
'field_meta' => [
|
||
|
|
'options' => ['매뉴얼', '양식', '보고서', '기타'],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
|
||
|
|
'notice' => [
|
||
|
|
'name' => '공지사항',
|
||
|
|
'description' => '테넌트 내부 공지사항',
|
||
|
|
'icon' => 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01',
|
||
|
|
'board_type' => 'notice',
|
||
|
|
'editor_type' => 'wysiwyg',
|
||
|
|
'allow_files' => true,
|
||
|
|
'max_file_count' => 5,
|
||
|
|
'max_file_size' => 20480,
|
||
|
|
'extra_settings' => [
|
||
|
|
'allow_comment' => false,
|
||
|
|
'allow_secret' => false,
|
||
|
|
'write_roles' => ['admin', 'manager'],
|
||
|
|
'read_roles' => ['*'],
|
||
|
|
],
|
||
|
|
'default_fields' => [],
|
||
|
|
],
|
||
|
|
|
||
|
|
'qna' => [
|
||
|
|
'name' => 'Q&A',
|
||
|
|
'description' => '질문과 답변 게시판',
|
||
|
|
'icon' => 'M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z',
|
||
|
|
'board_type' => 'qna',
|
||
|
|
'editor_type' => 'wysiwyg',
|
||
|
|
'allow_files' => true,
|
||
|
|
'max_file_count' => 5,
|
||
|
|
'max_file_size' => 20480,
|
||
|
|
'extra_settings' => [
|
||
|
|
'allow_comment' => true,
|
||
|
|
'allow_secret' => true,
|
||
|
|
'write_roles' => ['*'],
|
||
|
|
'read_roles' => ['*'],
|
||
|
|
],
|
||
|
|
'default_fields' => [],
|
||
|
|
],
|
||
|
|
|
||
|
|
],
|
||
|
|
|
||
|
|
];
|