| | |
| | | package com.linghu.model.dto; |
| | | |
| | | import com.linghu.model.validator.CreateGroup; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | |
| | | |
| | | import com.linghu.model.entity.Keyword; |
| | | import com.linghu.model.entity.Question; |
| | | import org.springframework.validation.annotation.Validated; |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.NotEmpty; |
| | | |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Data |
| | |
| | | /** |
| | | * 提问词列表,用换行符分隔 |
| | | */ |
| | | @NotEmpty(message = "提问词不能为空",groups = CreateGroup.class) |
| | | private String questions; |
| | | |
| | | @Valid |
| | | private List<Question> questionList; |
| | | private List<String> taskIdList; |
| | | } |