*/ 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'], ]; }