lihai-oa/app/project/validate/DocumentCheck.php

23 lines
412 B
PHP
Raw Normal View History

2023-10-24 15:17:16 +08:00
<?php
namespace app\project\validate;
use think\Validate;
class DocumentCheck extends Validate
{
protected $rule = [
'title' => 'require',
'id' => 'require',
];
protected $message = [
'title.require' => '文档标题不能为空',
'id.require' => '缺少更新条件',
];
protected $scene = [
'add' => ['title'],
'edit' => ['id'],
];
}