提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.demo.demo01.vo; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotEmpty; |
|
7 |
import javax.validation.constraints.NotNull; |
|
8 |
import java.time.LocalDateTime; |
|
9 |
|
|
10 |
@Schema(description = "管理后台 - 示例联系人新增/修改 Request VO") |
|
11 |
@Data |
|
12 |
public class Demo01ContactSaveReqVO { |
|
13 |
|
|
14 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "21555") |
|
15 |
private Long id; |
|
16 |
|
|
17 |
@Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三") |
|
18 |
@NotEmpty(message = "名字不能为空") |
|
19 |
private String name; |
|
20 |
|
|
21 |
@Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
22 |
@NotNull(message = "性别不能为空") |
|
23 |
private Integer sex; |
|
24 |
|
|
25 |
@Schema(description = "出生年", requiredMode = Schema.RequiredMode.REQUIRED) |
|
26 |
@NotNull(message = "出生年不能为空") |
|
27 |
private LocalDateTime birthday; |
|
28 |
|
|
29 |
@Schema(description = "简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对") |
|
30 |
@NotEmpty(message = "简介不能为空") |
|
31 |
private String description; |
|
32 |
|
|
33 |
@Schema(description = "头像") |
|
34 |
private String avatar; |
|
35 |
|
|
36 |
} |