ContentValidate.php 354 B

123456789101112131415161718
  1. <?php
  2. namespace app\admin\validate\sys_manage;
  3. use support\Validate;
  4. class ContentValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'content_id' => 'require|integer',
  8. 'content_title|标题' => 'require',
  9. ];
  10. protected $scene = [
  11. 'add' => ['content_title'],
  12. 'update' => ['content_id', 'content_title']
  13. ];
  14. }