Browse Source

文章内容不能为空

master
jianjun 5 years ago
parent
commit
d8f4f80d96
  1. 3
      epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/form/DraftContentFromDTO.java

3
epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/form/DraftContentFromDTO.java

@ -20,6 +20,7 @@ package com.epmet.dto.form;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;
@ -49,7 +50,7 @@ public class DraftContentFromDTO implements Serializable {
/**
* 内容列表
*/
@NotBlank(message = "文章内容不能为空")
@NotEmpty(message = "文章内容不能为空")
private List<DraftContentDTO> contentList;
@Data

Loading…
Cancel
Save