You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.4 KiB
PHP

<?php
return [
'AGE_LIMIT' => [
'name' => '年龄限制',
'description' => '限制预约患者的年龄范围',
'fields' => [
['key' => 'min_age', 'label' => '最小年龄', 'type' => 'number', 'default' => 0, 'validation' => 'required|integer|min:0|max:150'],
['key' => 'max_age', 'label' => '最大年龄', 'type' => 'number', 'default' => 120, 'validation' => 'required|integer|min:0|max:150'],
],
],
'GENDER_LIMIT' => [
'name' => '性别限制',
'description' => '限制预约患者的性别',
'fields' => [
['key' => 'gender', 'label' => '性别', 'type' => 'radio', 'options' => ['男', '女'], 'validation' => 'required|in:男,女'],
],
],
'TIME_RESTRICTION' => [
'name' => '预约时间段限制',
'description' => '限制预约的时间段和星期',
'fields' => [
['key' => 'start_time', 'label' => '开始时间', 'type' => 'time', 'validation' => 'required|date_format:H:i'],
['key' => 'end_time', 'label' => '结束时间', 'type' => 'time', 'validation' => 'required|date_format:H:i'],
['key' => 'days', 'label' => '限制星期', 'type' => 'checkbox', 'options' => ['周一', '周二', '周三', '周四', '周五', '周六', '周日'], 'validation' => 'required|array'],
],
],
];