You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
597 B
30 lines
597 B
<?php |
|
/** |
|
* |
|
* ApiModule.php |
|
* User: ChenLong |
|
* DateTime: 2020-12-11 11:08:43 |
|
*/ |
|
|
|
namespace app\admin\validate\system; |
|
|
|
use app\common\BaseValidate; |
|
|
|
/** |
|
* Class ApiModule |
|
* @package app\common\validate\ApiModule |
|
* @author chenlong <vip_chenlong@163.com> |
|
*/ |
|
class ApiModule extends BaseValidate |
|
{ |
|
protected $rule = [ |
|
'id|接口模块' => 'require|number', |
|
'item_name|模块名' => 'require', |
|
'describe|描述' => 'require', |
|
]; |
|
|
|
protected $scene = [ |
|
'add' => ['item_name', 'describe'], |
|
'edit' => ['id', 'item_name', 'describe'], |
|
]; |
|
}
|
|
|