first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\AnnoRoute\Attribute;
|
||||
|
||||
use Attribute;
|
||||
use Modules\AnnoRoute\BaseAttribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_METHOD)]
|
||||
class PutRoute extends BaseAttribute
|
||||
{
|
||||
/** @var string 请求方法 */
|
||||
public string $httpMethod = 'PUT';
|
||||
|
||||
/**
|
||||
* @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 = [],
|
||||
)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user