Blame view

yudao-module-infra/src/test/resources/codegen/vue2_master_inner/java/InfraStudentSaveReqVO 2.29 KB
46305340   YunaiV   reactor(infra):增加...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  package cn.iocoder.yudao.module.infra.controller.admin.demo.vo;
  
  import io.swagger.v3.oas.annotations.media.Schema;
  import lombok.*;
  import java.util.*;
  import jakarta.validation.constraints.*;
  import org.springframework.format.annotation.DateTimeFormat;
  import java.time.LocalDateTime;
  import cn.iocoder.yudao.module.infra.dal.dataobject.demo.InfraStudentContactDO;
  import cn.iocoder.yudao.module.infra.dal.dataobject.demo.InfraStudentTeacherDO;
  
  @Schema(description = "管理后台 - 学生新增/修改 Request VO")
  @Data
  public class InfraStudentSaveReqVO {
  
      @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
      private Long id;
  
      @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋头")
      @NotEmpty(message = "名字不能为空")
      private String name;
  
      @Schema(description = "简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是介绍")
      @NotEmpty(message = "简介不能为空")
      private String description;
  
      @Schema(description = "出生日期", requiredMode = Schema.RequiredMode.REQUIRED)
      @NotNull(message = "出生日期不能为空")
      private LocalDateTime birthday;
  
      @Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
      @NotNull(message = "性别不能为空")
      private Integer sex;
  
      @Schema(description = "是否有效", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
      @NotNull(message = "是否有效不能为空")
      private Boolean enabled;
  
      @Schema(description = "头像", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/1.png")
      @NotEmpty(message = "头像不能为空")
      private String avatar;
  
      @Schema(description = "附件", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/1.mp4")
      @NotEmpty(message = "附件不能为空")
      private String video;
  
      @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是备注")
      @NotEmpty(message = "备注不能为空")
      private String memo;
  
      @Schema(description = "学生联系人列表")
      private List<InfraStudentContactDO> studentContacts;
  
      @Schema(description = "学生班主任")
      private InfraStudentTeacherDO studentTeacher;
  
  }