IndexValidate.php 524 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\admin\validate\consultant;
  3. use support\Validate;
  4. class IndexValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'id|ID' => 'require|integer',
  8. 'mobile|手机号' => 'require|mobile',
  9. 'name|姓名' => 'require',
  10. 'password|密码' => 'require',
  11. 'dept_id|团队' => 'require'
  12. ];
  13. protected $message = [];
  14. protected $scene = [
  15. 'add' => ['mobile', 'name', 'password', 'dept_id'],
  16. 'update' => ['id', 'mobile', 'name', 'dept_id']
  17. ];
  18. }