quanwei
2025-11-28 3ea53e61cc23fdb3ddf8b38a199ca60a6da8c407
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
 
namespace app\common\enum\message;
 
use MyCLabs\Enum\Enum;
 
/**
 * 消息类型枚举类
 */
class MessageTypeEnum extends Enum
{
    // 订单
    const ORDER = 10;
 
    // 分销
    const AGENT = 20;
 
    // 通知
    const NOTICE = 30;
    /**
     * 获取枚举数据
     */
    public static function data()
    {
        return [
            self::ORDER => [
                'value' => self::ORDER,
                'name' => '订单',
            ],
            self::AGENT => [
                'value' => self::AGENT,
                'name' => '分销',
            ],
            self::NOTICE => [
                'value' => self::NOTICE,
                'name' => '通知',
            ],
        ];
    }
 
}