package com.engine.secret.enums;

/**
 * 集成资质
 *
 * @author:dxfeng
 * @createTime: 2025/04/07
 * @version: 1.0
 */
public enum IntegrateCategory implements CategoryValue {
    // 总体集成、系统咨询、软件开发、安防监控、屏蔽室建设、运行维护、数据恢复、工程监理
    SYSTEM_INTEGRATION("总体集成", 0),
    SYSTEM_CONSULTING("系统咨询", 1),
    SOFTWARE_DEVELOPMENT("软件开发", 2),
    SECURITY_SURVEILLANCE("安防监控", 3),
    SHIELDED_ROOM_CONSTRUCTION("屏蔽室建设", 4),
    OPERATION_MAINTENANCE("运行维护", 5),
    DATA_RECOVERY("数据恢复", 6),
    PROJECT_SUPERVISION("工程监理", 7);

    IntegrateCategory(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    private String name;
    private Integer value;

    public static IntegrateCategory getValue(String name) {
        for (IntegrateCategory item : IntegrateCategory.values()) {
            if (item.name.equalsIgnoreCase(name)) {
                return item;
            }
        }
        //throw new RuntimeException("不支持的操作类型");
        return null;
    }


    @Override
    public int getSelectValue() {
        return value;
    }
}
