added image for post
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.krylov.refound.util;
|
||||
|
||||
import com.krylov.refound.enums.PostType;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class StringToPostTypeConverter implements Converter<String, PostType> {
|
||||
@Override
|
||||
public PostType convert(String value) {
|
||||
return PostType.from(value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user