Certificate.php 507 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\common\validate;
  3. use think\Db;
  4. use think\Validate;
  5. class Certificate extends Validate{
  6. protected $rule = [
  7. 'title|名称' => 'require',
  8. 'user_id' => 'require|gt:0',
  9. 'status' => 'require|in:1,2,3'
  10. ];
  11. protected $message = [
  12. 'user_id.require' => '未选择员工',
  13. 'user_id.gt' => '未选择员工',
  14. 'status.require' => '未选择状态',
  15. 'status.in' => '未选择状态',
  16. ];
  17. protected $scene = [
  18. ];
  19. }