Skip to content

Commit 599c3cf

Browse files
committed
FieldKey add serializer
1 parent a6caaf1 commit 599c3cf

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

client/src/main/java/cn/vika/client/api/model/FieldKey.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
package cn.vika.client.api.model;
2020

21+
import com.fasterxml.jackson.annotation.JsonValue;
22+
2123
/**
2224
* FieldKey enum
2325
*
@@ -28,9 +30,20 @@ public enum FieldKey {
2830
/**
2931
* find fields with name
3032
*/
31-
Name,
33+
Name("name"),
3234
/**
3335
* find fields with id
3436
*/
35-
ID
37+
ID("id");
38+
39+
private final String value;
40+
41+
FieldKey(String value) {
42+
this.value = value;
43+
}
44+
45+
@JsonValue
46+
public String getValue() {
47+
return value;
48+
}
3649
}

0 commit comments

Comments
 (0)