/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the dreamlu.net developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ package org.springblade.modules.exam.excel; import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.annotation.write.style.ColumnWidth; import com.alibaba.excel.annotation.write.style.ContentRowHeight; import com.alibaba.excel.annotation.write.style.HeadRowHeight; import lombok.Data; import java.io.Serializable; /** * 题目导入 * @author zhongrj * @since 2021-08-05 */ @Data @ColumnWidth(25) @HeadRowHeight(20) @ContentRowHeight(18) public class ExamSubjectExcel implements Serializable { private static final long serialVersionUID = 1L; @ColumnWidth(25) @ExcelProperty("题目名称") private String subjectName; @ColumnWidth(15) @ExcelProperty("题目类型(0:单选题 1:多选题 2:判断题 3:实操题)") private Integer choicesType; @ColumnWidth(20) @ExcelProperty("题库类型 A为简易题库,B为复杂题库,C为模拟题库") private String tktype; @ColumnWidth(25) @ExcelProperty("A项内容,选项内容判断题不需要填写") private String optionContentA; @ColumnWidth(25) @ExcelProperty("B项内容") private String optionContentB; @ColumnWidth(25) @ExcelProperty("C项内容") private String optionContentC; @ColumnWidth(25) @ExcelProperty("D项内容") private String optionContentD; @ColumnWidth(25) @ExcelProperty("E项内容(单选,多选,判断题不需填写,实操题ABCDE分别对应12345)") private String optionContentE; @ColumnWidth(15) @ExcelProperty("答案,多选和实操答案以英文逗号隔开,如A,B") private String answer; @ColumnWidth(15) @ExcelProperty("分值") private Integer score; @ColumnWidth(20) @ExcelProperty("解析") private String analysis; }