StoreServiceValidate.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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\merchant;
  12. use think\Validate;
  13. class StoreServiceValidate extends Validate
  14. {
  15. protected $failException = true;
  16. protected $rule = [
  17. 'uid|客服' => 'require|array',
  18. 'uid.id|客服' => 'require|integer',
  19. 'nickname|客服名称' => 'require|max:12',
  20. 'avatar|客服头像' => 'max:250',
  21. 'status|状态' => 'require|in:0,1',
  22. 'is_verify|核销状态' => 'require|in:0,1',
  23. 'notify|订单通知状态' => 'require|in:0,1',
  24. 'sort|排序' => 'require|integer',
  25. 'customer|展示统计管理状态' => 'require|in:0,1',
  26. ];
  27. }