added get and create post
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
package com.krylov.refound.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
|
||||
public enum PostType {
|
||||
LOST,
|
||||
FOUND
|
||||
LOSS,
|
||||
FOUND;
|
||||
|
||||
@JsonCreator
|
||||
public static PostType from(String value) {
|
||||
return PostType.valueOf(value.toUpperCase());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user