first commit

This commit is contained in:
liu
2026-05-30 17:38:49 +08:00
commit 2bcb722448
413 changed files with 43656 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Modules\AnnoRoute\Attribute;
use Attribute;
use Modules\AnnoRoute\BaseAttribute;
#[Attribute(Attribute::TARGET_METHOD)]
class GetRoute extends BaseAttribute
{
/** @var string 请求方法 */
public string $httpMethod = 'GET';
/**
* @param string $route 路由地址
* @param string|bool $authorize 权限字段
* @param string|array $middleware 中间件
* @param array $where 路由参数约束
*/
public function __construct(
public string $route = '',
public string|bool $authorize = true,
public string | array $middleware = '',
public array $where = [],
)
{
}
}