mirror of https://github.com/halo-dev/halo
parent
625a89de77
commit
6b8cf2f57e
|
@ -6,7 +6,6 @@ import run.halo.app.model.entity.Journal;
|
||||||
import run.halo.app.model.enums.JournalType;
|
import run.halo.app.model.enums.JournalType;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.Size;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Journal param.
|
* Journal param.
|
||||||
|
@ -19,7 +18,6 @@ import javax.validation.constraints.Size;
|
||||||
public class JournalParam implements InputConverter<Journal> {
|
public class JournalParam implements InputConverter<Journal> {
|
||||||
|
|
||||||
@NotBlank(message = "内容不能为空")
|
@NotBlank(message = "内容不能为空")
|
||||||
@Size(max = 511, message = "内容的字符长度不能超过 {max}")
|
|
||||||
private String sourceContent;
|
private String sourceContent;
|
||||||
|
|
||||||
private JournalType type = JournalType.PUBLIC;
|
private JournalType type = JournalType.PUBLIC;
|
||||||
|
|
Loading…
Reference in New Issue