You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package cn.teammodel.model.dto.Appraise;
|
|
|
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author winter
|
|
|
|
* @create 2023-11-28 16:16
|
|
|
|
*/
|
|
|
|
@Data
|
|
|
|
public class AppraiseVoteDto {
|
|
|
|
@NotNull
|
|
|
|
@ApiModelProperty(value = "评价对象为班级 或 学生")
|
|
|
|
private String targetId;
|
|
|
|
|
|
|
|
@NotNull
|
|
|
|
@ApiModelProperty(value = "评价对象类型:", allowableValues = "student ,class")
|
|
|
|
private String targetType;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "评分是否传播到班级下的所有学生(字段仅在 targetType=class 时生效)")
|
|
|
|
private boolean spread;
|
|
|
|
/**
|
|
|
|
* 可以当作唯一 id
|
|
|
|
*/
|
|
|
|
@NotNull
|
|
|
|
@ApiModelProperty(value = "评价项唯一 id", required = true)
|
|
|
|
private String appraiseId;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "学段 id,用于拿到 semesterId", required = true)
|
|
|
|
@NotNull
|
|
|
|
private String periodId;
|
|
|
|
}
|