类 EnumFieldCustomizer
java.lang.Object
cn.sinozg.applet.common.customizer.EnumFieldCustomizer
- 所有已实现的接口:
org.springdoc.core.customizers.PropertyCustomizer
@Component
public class EnumFieldCustomizer
extends Object
implements org.springdoc.core.customizers.PropertyCustomizer
将字段的枚举值写入到 swagger
- 从以下版本开始:
- 2023-12-10 12:04
- 作者:
- xieyubin
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明io.swagger.v3.oas.models.media.Schema<?>customize(io.swagger.v3.oas.models.media.Schema property, io.swagger.v3.core.converter.AnnotatedType type) private Stringdict 键对值private StringenumInfo(cn.sinozg.applet.common.annotation.EnumField ef) 获取枚举值的键值对private StringwrapUp(StringBuilder info, boolean error, boolean isDict) 转html 语言
-
字段详细资料
-
log
public static final org.slf4j.Logger log
-
-
构造器详细资料
-
EnumFieldCustomizer
public EnumFieldCustomizer()
-
-
方法详细资料
-
customize
public io.swagger.v3.oas.models.media.Schema<?> customize(io.swagger.v3.oas.models.media.Schema property, io.swagger.v3.core.converter.AnnotatedType type) - 指定者:
customize在接口中org.springdoc.core.customizers.PropertyCustomizer
-
enumInfo
获取枚举值的键值对- 参数:
ef- 枚举值- 返回:
- 信息
- 抛出:
Exception- 异常
-
dictPair
dict 键对值- 参数:
dict- dict- 返回:
- 数据
-
wrapUp
转html 语言- 参数:
info- 键对值信息error- 是否错误- 返回:
- 文本
-