提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.demo.demo03.vo; |
H |
2 |
|
|
3 |
import com.iailab.module.infra.dal.dataobject.demo.demo03.Demo03CourseDO; |
|
4 |
import com.iailab.module.infra.dal.dataobject.demo.demo03.Demo03GradeDO; |
|
5 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
6 |
import lombok.Data; |
|
7 |
|
|
8 |
import javax.validation.constraints.NotEmpty; |
|
9 |
import javax.validation.constraints.NotNull; |
|
10 |
import java.time.LocalDateTime; |
|
11 |
import java.util.List; |
|
12 |
|
|
13 |
@Schema(description = "管理后台 - 学生新增/修改 Request VO") |
|
14 |
@Data |
|
15 |
public class Demo03StudentSaveReqVO { |
|
16 |
|
|
17 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8525") |
|
18 |
private Long id; |
|
19 |
|
|
20 |
@Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
21 |
@NotEmpty(message = "名字不能为空") |
|
22 |
private String name; |
|
23 |
|
|
24 |
@Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED) |
|
25 |
@NotNull(message = "性别不能为空") |
|
26 |
private Integer sex; |
|
27 |
|
|
28 |
@Schema(description = "出生日期", requiredMode = Schema.RequiredMode.REQUIRED) |
|
29 |
@NotNull(message = "出生日期不能为空") |
|
30 |
private LocalDateTime birthday; |
|
31 |
|
|
32 |
@Schema(description = "简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便") |
|
33 |
@NotEmpty(message = "简介不能为空") |
|
34 |
private String description; |
|
35 |
|
|
36 |
|
|
37 |
private List<Demo03CourseDO> demo03Courses; |
|
38 |
|
|
39 |
private Demo03GradeDO demo03Grade; |
|
40 |
|
|
41 |
} |