GuaranteeValidate.php 372 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\validate\admin;
  3. use think\Validate;
  4. class GuaranteeValidate extends Validate
  5. {
  6. protected $failException = true;
  7. protected $rule = [
  8. 'guarantee_name|保障服务名称' => 'require',
  9. 'guarantee_info|保障服务简介' => 'require',
  10. 'image|图标' => 'require',
  11. 'status|是否开启' => 'in:0,1',
  12. ];
  13. }