[maimai2] Support user portrait

This commit is contained in:
Mikira Sora
2022-12-11 04:47:44 +00:00
committed by Dom Eori
parent 75932c4b75
commit 709b977e73
8 changed files with 253 additions and 7 deletions

View File

@@ -38,6 +38,14 @@ public class BasicMapper {
}
public <T> T read(String jsonStr, Class<T> toClass) throws JsonProcessingException {
return mapper.readValue(jsonStr, toClass);
}
public <T> T read(String jsonStr, TypeReference<T> toValueTypeRef) throws JsonProcessingException {
return mapper.readValue(jsonStr, toValueTypeRef);
}
public <T> T convert(Object map, Class<T> toClass) {
return mapper.convertValue(map, toClass);
}