|
|
@@ -5,7 +5,9 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import com.xunmei.common.core.domain.edu.domain.CoreEduTrainingTaskToUser;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
+import org.hibernate.validator.constraints.Length;
|
|
|
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.List;
|
|
|
@@ -34,20 +36,23 @@ public class CoreEduTrainingTaskEditDto {
|
|
|
private LocalDateTime trainingEndDateTime;
|
|
|
|
|
|
|
|
|
- @ApiModelProperty(value = "内容")
|
|
|
+ /*@Length(max = 2000, message = "培训内容长度不能超过2000个字符", min = 1)
|
|
|
+ @ApiModelProperty(value = "培训内容")*/
|
|
|
private String content;
|
|
|
|
|
|
-
|
|
|
+ //@Length(max = 2000, message = "培训内容长度不能超过2000个字符", min = 1)
|
|
|
@ApiModelProperty(value = "总结")
|
|
|
private String note;
|
|
|
|
|
|
+ //@NotEmpty(message = "上传图片不能为空")
|
|
|
@ApiModelProperty(value = "图片")
|
|
|
private String imageList;
|
|
|
|
|
|
+ //@NotNull(message = "提交类型不能为空")
|
|
|
@ApiModelProperty(value = "提交类型", notes = "1:暂存,2:提交")
|
|
|
private Integer submitType;
|
|
|
|
|
|
-
|
|
|
+ //@NotEmpty(message = "参与人员不能为空")
|
|
|
@ApiModelProperty(value = "任务用户信息", notes = "1:参与人员,2:缺席人员")
|
|
|
private List<CoreEduTrainingTaskToUser> taskUserList;
|
|
|
|