1
0
Fork 0
party-rank-server/app/Enums/TargetType.php

23 lines
363 B
PHP

<?php
namespace App\Enums;
enum TargetType: string
{
case App = 'app';
case Web = 'web';
public static function map()
{
return [
self::App->value => '内部跳转',
self::Web->value => '外部链接',
];
}
public function text()
{
return data_get(self::map(), $this->value);
}
}