package cn.reghao.tnb.content.app.exam.model.po;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author reghao
 * @date 2024-08-28 08:48:47
 */
@Setter
@Getter
public class PaperQuestion {
    private Integer paperId;
    private Integer pid;
    @NotNull
    private Integer pos;
    @NotNull
    private Integer questionId;
    @NotNull
    private Integer score;
    private Boolean child;
    @Size(max = 20)
    private transient List<PaperQuestion> children;

    public PaperQuestion() {
        this.pid = 0;
        this.child = false;
    }

    public void setPaperId(Integer paperId) {
        this.paperId = paperId;
    }

    public void setChild(Boolean child) {
        this.child = child;
    }
}
