JavaScript is disabled on your browser.
Skip navigation links
Overview
Package
Class
Use
Tree
Deprecated
Index
Summary:
Field |
Optional
|
Required
Detail:
Field |
Element
SEARCH:
Package
cn.sinozg.applet.common.annotation
Annotation Interface EnumField
@Target
(
FIELD
)
@Retention
(
RUNTIME
)
public @interface
EnumField
字段是枚举值的,将枚举键对显示在swagger上
Since:
2023-12-10 12:21
Author:
xieyubin
Required Element Summary
Required Elements
Modifier and Type
Required Element
Description
Class
<?>
clazz
实现对 枚举类的类型
Optional Element Summary
Optional Elements
Modifier and Type
Optional Element
Description
String
key
枚举类的 key 对应的名称
String
name
枚举类的 name 对应的名称
Element Details
clazz
Class
<?>
clazz
实现对 枚举类的类型
key
String
key
枚举类的 key 对应的名称
Default:
"code"
name
String
name
枚举类的 name 对应的名称
Default:
"name"