CRMEB_PRO_M/app/validate/admin/work/GroupTemplateValidate.php

55 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
namespace app\validate\admin\work;
use think\Validate;
/**
* Class GroupTemplateValidate
* @package app\validate\admin\work
*/
class GroupTemplateValidate extends Validate
{
/**
* @var array
*/
protected $rule = [
'type' => 'require',
'name' => 'require',
'client_type' => 'require',
'template_type' => 'require',
'where_time' => 'require',
'welcome_words' => 'require',
];
/**
* @var array
*/
protected $message = [
'type.require' => '群发类型',
'name.require' => '群发名称',
'client_type.require' => '选择客户类型',
'template_type.require' => '选择发送类型',
'welcome_words.require' => '请填写群发内容',
'where_time.require' => '请选择添加时间',
];
/**
* @var array
*/
protected $scene = [
];
}