src/main/java/com/linghu/model/dto/KeywordDto.java
@@ -8,12 +8,15 @@ import com.linghu.model.entity.Keyword; import com.linghu.model.entity.Question; import javax.validation.constraints.NotEmpty; @EqualsAndHashCode(callSuper = true) @Data public class KeywordDto extends Keyword { /** * 提问词列表,用换行符分隔 */ @NotEmpty(message = "提问词不能为空") private String questions; private List<Question> questionList;