diff --git a/Annotation/Route/Document.php b/Annotation/Route/Document.php index 921b6e6e..e1eef36d 100644 --- a/Annotation/Route/Document.php +++ b/Annotation/Route/Document.php @@ -11,6 +11,19 @@ namespace Annotation\Route; #[\Attribute(\Attribute::TARGET_METHOD)] class Document { + const INTEGER = 'int'; + const STRING = 'string'; + const BOOLEAN = 'bool'; + const FLOAT = 'float'; + + const ALIAS = [ + self::INTEGER => '整数', + self::STRING => '字符串', + self::BOOLEAN => '布尔值', + self::FLOAT => '浮点', + ]; + + public function __construct( public array $docs )