mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-14 12:32:50 +00:00
42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
// +----------------------------------------------------------------------
|
||
// | Author: CRMEB Team <admin@crmeb.com>
|
||
// +----------------------------------------------------------------------
|
||
|
||
namespace app\kefuapi\validate;
|
||
|
||
|
||
use think\Validate;
|
||
|
||
class SpeechcraftValidate extends Validate
|
||
{
|
||
/**
|
||
* @var string[]
|
||
*/
|
||
protected $rule = [
|
||
'title' => 'chsAlphaNum|length:0,50',
|
||
'cate_id' => 'require|number',
|
||
'message' => 'require|length:0,500',
|
||
'sort' => 'number',
|
||
];
|
||
|
||
/**
|
||
* @var string[]
|
||
*/
|
||
protected $message = [
|
||
'title.chsAlphaNum' => '410105',
|
||
'title.length' => '410106',
|
||
'cate_id.require' => '410107',
|
||
'cate_id.number' => '410108',
|
||
'message.require' => '410109',
|
||
'message.length' => '410110',
|
||
'sort.number' => '410111',
|
||
];
|
||
}
|