提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.demo.vo; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.*; |
|
5 |
import java.util.*; |
|
6 |
import java.util.*; |
|
7 |
import org.springframework.format.annotation.DateTimeFormat; |
|
8 |
import java.time.LocalDateTime; |
|
9 |
import com.alibaba.excel.annotation.*; |
|
10 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
11 |
import com.iailab.framework.excel.core.convert.DictConvert; |
|
12 |
|
|
13 |
@Schema(description = "管理后台 - 学生 Response VO") |
|
14 |
@Data |
|
15 |
@ExcelIgnoreUnannotated |
|
16 |
public class InfraStudentRespVO { |
|
17 |
|
|
18 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
19 |
@ExcelProperty("编号") |
|
20 |
private Long id; |
|
21 |
|
|
22 |
@Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋头") |
|
23 |
@ExcelProperty("名字") |
|
24 |
private String name; |
|
25 |
|
|
26 |
@Schema(description = "简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是介绍") |
|
27 |
@ExcelProperty("简介") |
|
28 |
private String description; |
|
29 |
|
|
30 |
@Schema(description = "出生日期", requiredMode = Schema.RequiredMode.REQUIRED) |
|
31 |
@ExcelProperty("出生日期") |
|
32 |
private LocalDateTime birthday; |
|
33 |
|
|
34 |
@Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
35 |
@ExcelProperty(value = "性别", converter = DictConvert.class) |
|
36 |
@DictFormat("system_user_sex") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中 |
|
37 |
private Integer sex; |
|
38 |
|
|
39 |
@Schema(description = "是否有效", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
40 |
@ExcelProperty(value = "是否有效", converter = DictConvert.class) |
|
41 |
@DictFormat("infra_boolean_string") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中 |
|
42 |
private Boolean enabled; |
|
43 |
|
|
44 |
@Schema(description = "头像", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com/1.png") |
|
45 |
@ExcelProperty("头像") |
|
46 |
private String avatar; |
|
47 |
|
|
48 |
@Schema(description = "附件", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com/1.mp4") |
|
49 |
@ExcelProperty("附件") |
|
50 |
private String video; |
|
51 |
|
|
52 |
@Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是备注") |
|
53 |
@ExcelProperty("备注") |
|
54 |
private String memo; |
|
55 |
|
|
56 |
@Schema(description = "创建时间") |
|
57 |
@ExcelProperty("创建时间") |
|
58 |
private LocalDateTime createTime; |
|
59 |
|
|
60 |
} |