12345678910111213141516171819 |
- <?php
- namespace app\common\Enum;
- class GoodsLabelEnum
- {
- // 样式类型
- const STYLE_DIY = 'diy';
- const STYLE_ICON = 'icon';
- public static function getMap()
- {
- return [
- self::STYLE_DIY => '自定义',
- self::STYLE_ICON => '图片',
- ];
- }
- // 其它常量...
- }
|