Time.php 542 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class Time extends Validate{
  5. protected $rule = [
  6. 'title|标题' => 'require|length:1,200',
  7. 'yy_time|预约时间间隔分钟' => 'require',
  8. 'bz_time|标准时间间隔分钟' => 'require',
  9. 'jg_time|警告时间间隔分钟' => 'require',
  10. 'wjjg_time|危机警告时间间隔分钟' => 'require',
  11. ];
  12. protected $message = [
  13. 'title.length' => '名称必须200字以内',
  14. ];
  15. protected $scene = [
  16. ];
  17. }