GroupValidate.php 557 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020-03-27
  7. *
  8. *
  9. */
  10. namespace app\validate\admin;
  11. use think\Validate;
  12. class GroupValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'group_name|数据组名称' => 'require|max:32',
  17. 'group_info|数据组说明' => 'max:128',
  18. 'group_key|数据组key' => 'require|max:32',
  19. 'fields|数据组字段' => 'require|array',
  20. 'sort|排序' => 'require|integer',
  21. 'user_type|后台类型' => 'require|in:0,1'
  22. ];
  23. }