mall + product:完善商品详情接口

This commit is contained in:
YunaiV
2023-06-09 08:54:33 +08:00
parent dd93215139
commit f75f4e8846
9 changed files with 40 additions and 52 deletions

View File

@ -57,6 +57,11 @@ public class DictFrameworkUtils {
log.info("[init][初始化 DictFrameworkUtils 成功]");
}
@SneakyThrows
public static String getDictDataLabel(String dictType, Integer value) {
return GET_DICT_DATA_CACHE.get(new KeyValue<>(dictType, String.valueOf(value))).getLabel();
}
@SneakyThrows
public static String getDictDataLabel(String dictType, String value) {
return GET_DICT_DATA_CACHE.get(new KeyValue<>(dictType, value)).getLabel();