60 lines
1.4 KiB
PHP
60 lines
1.4 KiB
PHP
<?php
|
||
/**
|
||
* +----------------------------------------------------------------------
|
||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
* +----------------------------------------------------------------------
|
||
* | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
|
||
* +----------------------------------------------------------------------
|
||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
* +----------------------------------------------------------------------
|
||
* | Author: CRMEB Team <admin@crmeb.com>
|
||
* +----------------------------------------------------------------------
|
||
*/
|
||
|
||
/**
|
||
* 联系我们留言
|
||
* @author crud自动生成代码
|
||
* @date 2025/03/13 11:55:43
|
||
*/
|
||
|
||
namespace app\adminapi\validate\crud;
|
||
|
||
|
||
use think\Validate;
|
||
|
||
/**
|
||
* Class CrudValidate
|
||
* @date 2025/03/13
|
||
* @package app\adminapi\validate\crud
|
||
*/
|
||
class LeaveWordValidate extends Validate
|
||
{
|
||
|
||
/**
|
||
* @var array
|
||
*/
|
||
protected $rule = [
|
||
'name'=> 'require',
|
||
'mobile'=> 'require',
|
||
'content'=> 'require',
|
||
'create_time'=> 'require',
|
||
];
|
||
|
||
/**
|
||
* @var array
|
||
*/
|
||
protected $message = [
|
||
'name.require'=> '姓名必须填写',
|
||
'mobile.require'=> '联系方式必须填写',
|
||
'content.require'=> '留言必须填写',
|
||
'create_time.require'=> '添加时间必须填写',
|
||
];
|
||
|
||
/**
|
||
* @var array
|
||
*/
|
||
protected $scene = [
|
||
|
||
];
|
||
}
|