我想将一个实体映射到Dto,并且不确定我应该从spring boot的哪个属性开始。响应是一个动态编号为“代码”,“描述”的列表。一个例子是这样的:
autoCompleteInputStyle: {
flexDirection: "row",
height: 40,
borderStyle: "solid",
borderWidth: 1,
borderColor: "#cccccc",
fontSize: 18,
flex: 1,
justifyContent: "center",
marginRight: 14,
marginBottom: 20,
paddingLeft: 40,
color: "#000000",
borderRadius: 2,
lineHeight: 21,
fontFamily: fontStyleFlightCard.fontFamily
},
searchedText: {
fontWeight: "bold"
},
placeholderText: {
fontWeight: "normal"
},
我希望将实体映射到包含列表中所有信息的DTO,实现此目的的最佳做法是什么?