WechatWorkChannelCodeValidate.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. class WechatWorkChannelCodeValidate extends Validate
  14. {
  15. /**
  16. * @var array
  17. */
  18. protected $rule = [
  19. 'name' => 'require',
  20. 'reserve_userid' => 'require',
  21. 'cate_id' => 'require',
  22. 'label_id' => 'require',
  23. 'welcome_words' => 'require',
  24. ];
  25. /**
  26. * @var array
  27. */
  28. protected $message = [
  29. 'name.require' => '请填写渠道二维码名称',
  30. 'reserve_userid.require' => '请选择渠道二维码备用成员',
  31. 'cate_id.require' => '请选择渠道二维码分类',
  32. 'label_id.require' => '请选择渠道二维码标签',
  33. 'welcome_words.require' => '请填写渠道二维码欢迎语',
  34. ];
  35. }