package com.ltgk.crew.domain.dto;

import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Add;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 答题记录数据传输对象
 *
 * @author Qi ChengBin
 * @date 2024-12-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "答题记录数据传输对象", description = "答题记录数据传输对象")
public class DsAnswerRecordDTO extends BasePage {

    @ApiModelProperty(value = "答题记录主键")
    private String id;

    @ApiModelProperty(value = "船员ID")
    private String crewId;

    @ApiModelProperty(value = "考试记录ID；对应船员培训记录表主键")
    @NotNull(message = "考试记录ID不能为空", groups = {Add.class})
    private String examId;

    @ApiModelProperty(value = "题库ID")
    private String bankId;

    @ApiModelProperty(value = "选项")
    private String answerOption;

    @ApiModelProperty(value = "得分")
    private Integer score;

    @ApiModelProperty(value = "行政区域编码")
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    private String areaName;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;
}
