12345678910111213141516171819202122232425262728 |
- <?php
- /**
- * @copyright Copyright (c) 2021 勾股工作室
- * @license https://opensource.org/licenses/GPL-2.0
- * @link https://www.gougucms.com
- */
- namespace app\admin\validate;
- use think\Validate;
- class DepartmentCheck extends Validate
- {
- protected $rule = [
- 'title' => 'require',
- 'id' => 'require',
- ];
- protected $message = [
- 'title.require' => '部门名称不能为空',
- 'id.require' => '缺少更新条件',
- ];
- protected $scene = [
- 'add' => ['title'],
- 'edit' => ['id', 'title'],
- ];
- }
|