GroupTemplateValidate.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\validate\admin\work;
  12. use think\Validate;
  13. /**
  14. * Class GroupTemplateValidate
  15. * @package app\validate\admin\work
  16. */
  17. class GroupTemplateValidate extends Validate
  18. {
  19. /**
  20. * @var array
  21. */
  22. protected $rule = [
  23. 'type' => 'require',
  24. 'name' => 'require',
  25. 'client_type' => 'require',
  26. 'template_type' => 'require',
  27. 'where_time' => 'require',
  28. 'welcome_words' => 'require',
  29. ];
  30. /**
  31. * @var array
  32. */
  33. protected $message = [
  34. 'type.require' => '群发类型',
  35. 'name.require' => '群发名称',
  36. 'client_type.require' => '选择客户类型',
  37. 'template_type.require' => '选择发送类型',
  38. 'welcome_words.require' => '请填写群发内容',
  39. 'where_time.require' => '请选择添加时间',
  40. ];
  41. /**
  42. * @var array
  43. */
  44. protected $scene = [
  45. ];
  46. }