added get and create post

This commit is contained in:
SlimusMinus
2026-05-07 01:08:29 +03:00
parent 1718fa7337
commit 90016d2cd6
4 changed files with 27 additions and 67 deletions

View File

@@ -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());
}
}