优化项目目录结构

This commit is contained in:
2020-03-28 12:10:40 +08:00
parent f239647c7c
commit 671f66a0f0
33 changed files with 60 additions and 66 deletions

View File

@@ -1,29 +0,0 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\http\validate\admin;
use think\Validate;
/**
* 菜单验证
*/
class Category extends Validate{
protected $rule = [
'title' => 'require',
];
protected $message = [
'title.require' => '栏目名称必须',
];
protected $scene = [
'add' => ['title'],
'edit' => ['title'],
];
}