package com.iailab.module.infra.controller.admin.demo.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.*;
|
import java.util.*;
|
import java.util.*;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import java.time.LocalDateTime;
|
import com.alibaba.excel.annotation.*;
|
import com.iailab.framework.excel.core.annotations.DictFormat;
|
import com.iailab.framework.excel.core.convert.DictConvert;
|
|
@Schema(description = "管理后台 - 学生 Response VO")
|
@Data
|
@ExcelIgnoreUnannotated
|
public class InfraStudentRespVO {
|
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
@ExcelProperty("编号")
|
private Long id;
|
|
@Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋头")
|
@ExcelProperty("名字")
|
private String name;
|
|
@Schema(description = "简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是介绍")
|
@ExcelProperty("简介")
|
private String description;
|
|
@Schema(description = "出生日期", requiredMode = Schema.RequiredMode.REQUIRED)
|
@ExcelProperty("出生日期")
|
private LocalDateTime birthday;
|
|
@Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@ExcelProperty(value = "性别", converter = DictConvert.class)
|
@DictFormat("system_user_sex") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
private Integer sex;
|
|
@Schema(description = "是否有效", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
|
@ExcelProperty(value = "是否有效", converter = DictConvert.class)
|
@DictFormat("infra_boolean_string") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
private Boolean enabled;
|
|
@Schema(description = "头像", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com/1.png")
|
@ExcelProperty("头像")
|
private String avatar;
|
|
@Schema(description = "附件", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com/1.mp4")
|
@ExcelProperty("附件")
|
private String video;
|
|
@Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是备注")
|
@ExcelProperty("备注")
|
private String memo;
|
|
@Schema(description = "创建时间")
|
@ExcelProperty("创建时间")
|
private LocalDateTime createTime;
|
|
}
|