26 lines
606 B
PHP
26 lines
606 B
PHP
![]() |
<?php
|
||
|
/**
|
||
|
* @copyright Copyright (c) 2021 勾股工作室
|
||
|
* @license https://opensource.org/licenses/Apache-2.0
|
||
|
* @link https://www.gougucms.com
|
||
|
*/
|
||
|
|
||
|
namespace app\admin\validate;
|
||
|
use think\Validate;
|
||
|
|
||
|
class NoticeValidate extends Validate
|
||
|
{
|
||
|
protected $rule = [
|
||
|
'user_id' => 'require',
|
||
|
'title' => 'require',
|
||
|
'content' => 'require',
|
||
|
'status' => 'require',
|
||
|
];
|
||
|
|
||
|
protected $message = [
|
||
|
'user_id.require' => '接收人不能为空',
|
||
|
'title.require' => '标题不能为空',
|
||
|
'content.require' => '通知内容不能为空',
|
||
|
'status.require' => '状态不能为空',
|
||
|
];
|
||
|
}
|