first commit

This commit is contained in:
2025-09-12 15:23:08 +08:00
commit a80c237bbb
117 changed files with 15628 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace App\Constants\Model\AdminUser;
use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;
use Hyperf\Constants\EnumConstantsTrait;
#[Constants]
enum AdminMenuStatusCode: int
{
use EnumConstantsTrait;
#[Message('正常')]
case Normal = 1;
#[Message('停用')]
case DISABLE = 2;
public function isNormal(): bool
{
return $this === self::Normal;
}
public function isDisable(): bool
{
return $this === self::DISABLE;
}
}

View File

@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace App\Constants\Model\AdminUser;
use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;
use Hyperf\Constants\EnumConstantsTrait;
#[Constants]
enum AdminRoleStatusCode: int
{
use EnumConstantsTrait;
#[Message('正常')]
case Normal = 1;
#[Message('停用')]
case DISABLE = 2;
public function isNormal(): bool
{
return $this === self::Normal;
}
public function isDisable(): bool
{
return $this === self::DISABLE;
}
}

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace App\Constants\Model\AdminUser;
use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;
use Hyperf\Constants\EnumConstantsTrait;
#[Constants]
enum AdminUserStatusCode: int
{
use EnumConstantsTrait;
#[Message('正常')]
case Normal = 1;
#[Message('停用')]
case DISABLE = 2;
public function isNormal(): bool
{
return $this === self::Normal;
}
public function isDisable(): bool
{
return $this === self::DISABLE;
}
}

View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace App\Constants\Model\AdminUser;
use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;
use Hyperf\Constants\EnumConstantsTrait;
#[Constants]
enum AdminUserTypeCode: int
{
use EnumConstantsTrait;
#[Message('系统用户')]
case SYSTEM = 100;
#[Message('普通用户')]
case USER = 200;
}