public static CardIconDto buildTextIcon(String text) {
        return new CardIconDto().setText(StringUtils.truncate(text, 2))
                .setColor(RandomColorUtils.generate());
    }
buildTextIcon

@param text text
@return CardIconDto
src/main/java/com/tuituidan/openhub/util/IconUtils.java