You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.7 KiB
44 lines
1.7 KiB
package cn.iocoder.yudao.module.zhuguang.controller.admin.basic_info.vo;
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import lombok.*;
|
|
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 TeacherRespVO {
|
|
|
|
@Schema(description = "主键,唯一标识一个老师", requiredMode = Schema.RequiredMode.REQUIRED, example = "1420")
|
|
@ExcelProperty("主键,唯一标识一个老师")
|
|
private Long id;
|
|
|
|
@Schema(description = "老师工号", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@ExcelProperty("老师工号")
|
|
private String teacherNumber;
|
|
|
|
@Schema(description = "老师姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
|
@ExcelProperty("老师姓名")
|
|
private String teacherName;
|
|
|
|
@Schema(description = "老师性别 (M: 男, F: 女)", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@ExcelProperty(value = "老师性别 (M: 男, F: 女)", converter = DictConvert.class)
|
|
@DictFormat("system_user_sex") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
|
private String teacherSex;
|
|
|
|
@Schema(description = "老师年龄", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@ExcelProperty("老师年龄")
|
|
private Integer teacherAge;
|
|
|
|
@Schema(description = "老师邮箱")
|
|
@ExcelProperty("老师邮箱")
|
|
private String teacherEmail;
|
|
|
|
@Schema(description = "电话号码")
|
|
@ExcelProperty("电话号码")
|
|
private String phoneNumber;
|
|
|
|
} |