馬老師Java后端工程師
private void descForEnumFields(ModelPropertyContext context, Class fieldType) {
? ? ? ?Optional<ApiModelProperty> annotation = Optional.absent();
? ? ? ?if (context.getAnnotatedElement().isPresent()) {
? ? ? ? ? ?annotation = annotation ? ? ? ? ? ? ? ? ? ?.or(ApiModelProperties.findApiModePropertyAnnotation(context.getAnnotatedElement().get()));
? ? ? ?}
標簽: