public static <T extends BaseEnum<?>> T getEnum(final Class<T> clazz, final String code) {
        return getEnumMap(clazz).get(code);
    }
Get the description of the enumeration based on an enumeration type

@param clazz enumeration class
@param code Enumeration encoding
@param <T> The type of enumeration
@return If the code cannot be found, the return value is empty.
chat2db-server/chat2db-server-tools/chat2db-server-tools-common/src/main/java/ai/chat2db/server/tools/common/util/EasyEnumUtils.java