MarketCustomerValidate.php 888 B

123456789101112131415161718192021222324252627282930
  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. 'report_consultant_id|报备顾问' => 'require',
  15. 'consultant_id|健康顾问' => 'require',
  16. ];
  17. protected $message = [];
  18. protected $scene = [
  19. 'add' => ['mobile', 'name', 'report_consultant_id', 'visit_time', 'current_status'],
  20. 'update' => ['id', 'mobile', 'name', 'visit_time', 'current_status'],
  21. 'check' => ['id', 'check_status', 'consultant_id']
  22. ];
  23. }