package org.dromara.safety.domain.bo;

import org.dromara.safety.domain.BusQuestionUserAnswer;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户试卷存储业务对象 bus_question_user_answer
 *
 * @author lcj
 * @date 2025-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusQuestionUserAnswer.class, reverseConvertGenerate = false)
public class BusQuestionUserAnswerBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 题库id列表
     */
    private Long bankId;

    /**
     * 答案列表
     */
    private String answer;

    /**
     * 得分
     */
    private Long score;

    /**
     * 用时时间（时间戳/秒）
     */
    private Long takeTime;


}
