MarketCustomerValidate.php 754 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\admin\validate\consultant;
  3. use support\Validate;
  4. class MarketCustomerValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'id|ID' => 'require|integer',
  8. 'mobile|联系电话' => 'require|mobile',
  9. 'name|客户姓名' => 'require',
  10. 'consultant_id|所属顾问' => 'require',
  11. 'visit_time|访问时间' => 'require',
  12. 'current_status|当前状态' => 'require',
  13. 'check_status|审核状态' => 'require'
  14. ];
  15. protected $message = [];
  16. protected $scene = [
  17. 'add' => ['mobile', 'name', 'consultant_id', 'visit_time', 'current_status'],
  18. 'update' => ['id', 'mobile', 'name', 'visit_time', 'current_status'],
  19. 'check' => ['id', 'check_status']
  20. ];
  21. }