<?php

namespace App\Enums;

enum AttachmentCategory: string
{
    case IMAGE = 'image';
    case FILE = 'file';
    case VIDEO = 'video';
    case AVATAR = 'avatar';

    public function label(): string
    {
        return match ($this) {
            self::IMAGE => '图片',
            self::FILE => '文件',
            self::VIDEO => '视频',
            self::AVATAR => '头像',
        };
    }
}
