提交 | 用户 | 时间
|
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 javax.validation.constraints.*; |
|
7 |
import java.util.*; |
|
8 |
import org.springframework.format.annotation.DateTimeFormat; |
|
9 |
import java.time.LocalDateTime; |
|
10 |
import com.iailab.module.infra.dal.dataobject.demo.InfraStudentContactDO; |
|
11 |
import com.iailab.module.infra.dal.dataobject.demo.InfraStudentTeacherDO; |
|
12 |
|
|
13 |
@Schema(description = "管理后台 - 学生新增/修改 Request VO") |
|
14 |
@Data |
|
15 |
public class InfraStudentSaveReqVO { |
|
16 |
|
|
17 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
18 |
private Long id; |
|
19 |
|
|
20 |
@Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋头") |
|
21 |
@NotEmpty(message = "名字不能为空") |
|
22 |
private String name; |
|
23 |
|
|
24 |
@Schema(description = "简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是介绍") |
|
25 |
@NotEmpty(message = "简介不能为空") |
|
26 |
private String description; |
|
27 |
|
|
28 |
@Schema(description = "出生日期", requiredMode = Schema.RequiredMode.REQUIRED) |
|
29 |
@NotNull(message = "出生日期不能为空") |
|
30 |
private LocalDateTime birthday; |
|
31 |
|
|
32 |
@Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
33 |
@NotNull(message = "性别不能为空") |
|
34 |
private Integer sex; |
|
35 |
|
|
36 |
@Schema(description = "是否有效", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
37 |
@NotNull(message = "是否有效不能为空") |
|
38 |
private Boolean enabled; |
|
39 |
|
|
40 |
@Schema(description = "头像", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com/1.png") |
|
41 |
@NotEmpty(message = "头像不能为空") |
|
42 |
private String avatar; |
|
43 |
|
|
44 |
@Schema(description = "附件", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com/1.mp4") |
|
45 |
@NotEmpty(message = "附件不能为空") |
|
46 |
private String video; |
|
47 |
|
|
48 |
@Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是备注") |
|
49 |
@NotEmpty(message = "备注不能为空") |
|
50 |
private String memo; |
|
51 |
|
|
52 |
@Schema(description = "学生联系人列表") |
|
53 |
private List<InfraStudentContactDO> studentContacts; |
|
54 |
|
|
55 |
@Schema(description = "学生班主任") |
|
56 |
private InfraStudentTeacherDO studentTeacher; |
|
57 |
|
|
58 |
} |