|
|
package cn.iocoder.yudao.module.zhuguang.controller.admin.basic_info.vo;
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.*;
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
import java.util.*;
|
|
|
import com.alibaba.excel.annotation.*;
|
|
|
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
|
|
|
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
|
|
|
|
|
|
@Schema(description = "管理后台 - 学生信息 Response VO")
|
|
|
@Data
|
|
|
@ExcelIgnoreUnannotated
|
|
|
public class StudentRespVO {
|
|
|
|
|
|
@Schema(description = "主键,唯一标识一个学生", requiredMode = Schema.RequiredMode.REQUIRED, example = "3911")
|
|
|
@ExcelProperty("主键,唯一标识一个学生")
|
|
|
private Long id;
|
|
|
|
|
|
@Schema(description = "学生学号", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
@ExcelProperty("学生学号")
|
|
|
private String studentNumber;
|
|
|
|
|
|
@Schema(description = "学生姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
|
|
@ExcelProperty("学生姓名")
|
|
|
private String studentName;
|
|
|
|
|
|
@Schema(description = "学生性别 (M: 男, F: 女)", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
@ExcelProperty(value = "学生性别 (M: 男, F: 女)", converter = DictConvert.class)
|
|
|
@DictFormat("system_user_sex") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
|
|
private String studentSex;
|
|
|
|
|
|
@Schema(description = "在校状态(1住宿2走读3半走读)", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
@ExcelProperty("在校状态")
|
|
|
private Integer schoolStatus;
|
|
|
|
|
|
@Schema(description = "电话号码")
|
|
|
@ExcelProperty("电话号码")
|
|
|
private String phoneNumber;
|
|
|
|
|
|
@Schema(description = "学生宿舍楼")
|
|
|
@ExcelProperty("学生宿舍楼")
|
|
|
private String residenceNumber;
|
|
|
|
|
|
@Schema(description = "宿舍房门号")
|
|
|
@ExcelProperty("宿舍房门号")
|
|
|
private String roomNumber;
|
|
|
|
|
|
@Schema(description = "班级ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4328")
|
|
|
@ExcelProperty("班级ID")
|
|
|
private Long classId;
|
|
|
|
|
|
} |