初始化本地仓库

This commit is contained in:
2026-08-31 11:33:59 +08:00
commit 663f74b633
2390 changed files with 402918 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
namespace app\enum\web;
use core\interface\IEnum;
/**
* 菜单分类枚举
*/
enum MenuCategory: int implements IEnum
{
case NAV = 1; // 导航菜单
case MEMBER = 2; // 会员菜单
/**
* 获取文本
*/
public function text(): string
{
return match ($this) {
self::NAV => '导航菜单',
self::MEMBER => '会员菜单',
};
}
/**
* 获取标签
*/
public function label(): string
{
return $this->text();
}
}
+34
View File
@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
namespace app\enum\web;
use core\interface\IEnum;
/**
* 目标窗口枚举
*/
enum MenuTarget: int implements IEnum
{
case SELF = 1; // 当前窗口
case BLANK = 2; // 新窗口
/**
* 获取文本
*/
public function text(): string
{
return match ($this) {
self::SELF => '当前窗口',
self::BLANK => '新窗口',
};
}
/**
* 获取标签
*/
public function label(): string
{
return $this->text();
}
}
+39
View File
@@ -0,0 +1,39 @@
<?php
declare(strict_types=1);
namespace app\enum\web;
use core\interface\IEnum;
/**
* 导航类型枚举
*/
enum MenuType: int implements IEnum
{
case DIRECTORY = 1; // 目录
case NAV = 2; // 导航菜单
case LINK = 3; // 外部链接
case PAGE = 4; // 单页面
/**
* 获取文本
*/
public function text(): string
{
return match ($this) {
self::NAV => '导航菜单',
self::LINK => '外部链接',
self::PAGE => '单页面',
self::DIRECTORY => '目录',
};
}
/**
* 获取标签
*/
public function label(): string
{
return $this->text();
}
}