mirror of https://github.com/halo-dev/halo
Remove type property of post
parent
658ef3dbce
commit
983856e9ff
|
@ -28,8 +28,6 @@ public class BasePostMinimalDTO implements OutputConverter<BasePostMinimalDTO, B
|
||||||
|
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
private PostType type;
|
|
||||||
|
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
|
@ -16,8 +16,6 @@ import run.halo.app.model.enums.PostType;
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class BasePostSimpleDTO extends BasePostMinimalDTO {
|
public class BasePostSimpleDTO extends BasePostMinimalDTO {
|
||||||
|
|
||||||
private PostType type;
|
|
||||||
|
|
||||||
private String summary;
|
private String summary;
|
||||||
|
|
||||||
private String thumbnail;
|
private String thumbnail;
|
||||||
|
|
|
@ -5,6 +5,7 @@ package run.halo.app.model.enums;
|
||||||
*
|
*
|
||||||
* @author johnniang
|
* @author johnniang
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public enum PostType implements ValueEnum<Integer> {
|
public enum PostType implements ValueEnum<Integer> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -11,6 +11,7 @@ import javax.persistence.Converter;
|
||||||
* @date 3/27/19
|
* @date 3/27/19
|
||||||
*/
|
*/
|
||||||
@Converter(autoApply = true)
|
@Converter(autoApply = true)
|
||||||
|
@Deprecated
|
||||||
public class PostTypeConverter extends AbstractConverter<PostType, Integer> {
|
public class PostTypeConverter extends AbstractConverter<PostType, Integer> {
|
||||||
|
|
||||||
public PostTypeConverter() {
|
public PostTypeConverter() {
|
||||||
|
|
Loading…
Reference in New Issue