added image for post

This commit is contained in:
SlimusMinus
2026-06-01 01:57:16 +03:00
parent d4cb1ec2e3
commit 723e92baf1
9 changed files with 152 additions and 40 deletions

View File

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