com.nxyfan.framework.survey.param.SurveySaveParam Maven / Gradle / Ivy
The newest version!
package com.nxyfan.framework.survey.param;
import java.util.List;
import javax.validation.constraints.NotBlank;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
*
* Describe: 调查问卷保存参数
* Author: caoyang
* Create Time: 2022年12月8日 下午2:35:13
* Copyright @ 2022 51LIFE
*/
@Getter
@Setter
public class SurveySaveParam {
@ApiModelProperty(value = "调查问卷主键", position = 1)
private String surveyFlow;
@ApiModelProperty(value = "调查问卷名称或标题", required = true, position = 2)
@NotBlank(message = "调查问卷名称或标题不能为空")
private String surveyName;
@ApiModelProperty(value = "开始时间", position = 3)
private String startTime;
@ApiModelProperty(value = "结束时间", position = 4)
private String endTime;
@ApiModelProperty(value = "调查问卷内容", position = 5)
private String surveyContent;
@ApiModelProperty(value = "备注、描述", position = 6)
private String description;
@ApiModelProperty(value = "医院主键,多个用英文逗号隔开", position = 7)
private String hospitalFlow;
@ApiModelProperty(value = "医院名称,多个用英文逗号隔开", position = 8)
private String hospitalName;
@ApiModelProperty(value = "访问链接,如果状态为START,则不能为空,格式:{\"pc\":\"电脑端链接\",\"h5\":\"移动端链接\"}", position = 9)
private String url;
@ApiModelProperty(value = "状态,EDIT:编辑中;START:已发放;", required = true, position = 10)
@NotBlank(message = "状态不能为空")
private String state;
@ApiModelProperty(value = "启用标识,Y:启用;N:停用", required = true, position = 11)
@NotBlank(message = "任务名称不能为空")
private String useMark;
@ApiModelProperty(value = "调查问卷问题列表,如果状态为START,则不能为空", position = 12)
private List questionList;
@Getter
@Setter
public static class Question {
@ApiModelProperty(value = "问题编码", position = 1)
private String questionFlow;
@ApiModelProperty(value = "问题名称或标题", position = 2)
private String questionName;
@ApiModelProperty(value = "问题类型,1:单选题;2:多选题;3:简答题", position = 3)
private String questionType;
@ApiModelProperty(value = "备注、描述", position = 4)
private String description;
@ApiModelProperty(value = "排序号", position = 5)
private Integer seq;
@ApiModelProperty(value = "必填标识,Y:是;N:否", position = 6)
private String requiredMark;
@ApiModelProperty(value = "调查问卷问题选项列表,如果问题类型为1或2时,则不能为空", position = 7)
private List optionsList;
}
@Getter
@Setter
public static class Options {
@ApiModelProperty(value = "问题选项编码", position = 1)
private String flow;
@ApiModelProperty(value = "问题选项内容", position = 2)
private String content;
@ApiModelProperty(value = "排序号", position = 3)
private Integer seq;
}
}