招标
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.
 
 
 
 
 

32 lines
656 B

<?php
/**
*
* Api.php
* User: ChenLong
* DateTime: 2020-12-11 11:09:23
*/
namespace app\admin\validate\system;
use app\common\BaseValidate;
/**
* Class Api
* @package app\common\validate\Api
* @author chenlong <vip_chenlong@163.com>
*/
class Api extends BaseValidate
{
protected $rule = [
'id|api接口表' => 'require|number',
'api_name|接口名' => 'require',
'path|路径' => 'require',
'describe|描述' => 'require',
'response|响应示例' => 'require',
];
protected $scene = [
'add' => ['api_name', 'path'],
'edit' => ['id', 'api_name', 'path', 'response'],
];
}