package cn.lihu.jh.module.infra.controller.admin.demo.demo01.vo; 
 | 
  
 | 
import io.swagger.v3.oas.annotations.media.Schema; 
 | 
import lombok.Data; 
 | 
  
 | 
import javax.validation.constraints.NotEmpty; 
 | 
import javax.validation.constraints.NotNull; 
 | 
import java.time.LocalDateTime; 
 | 
  
 | 
@Schema(description = "管理后台 - 示例联系人新增/修改 Request VO") 
 | 
@Data 
 | 
public class Demo01ContactSaveReqVO { 
 | 
  
 | 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "21555") 
 | 
    private Long id; 
 | 
  
 | 
    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三") 
 | 
    @NotEmpty(message = "名字不能为空") 
 | 
    private String name; 
 | 
  
 | 
    @Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") 
 | 
    @NotNull(message = "性别不能为空") 
 | 
    private Integer sex; 
 | 
  
 | 
    @Schema(description = "出生年", requiredMode = Schema.RequiredMode.REQUIRED) 
 | 
    @NotNull(message = "出生年不能为空") 
 | 
    private LocalDateTime birthday; 
 | 
  
 | 
    @Schema(description = "简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对") 
 | 
    @NotEmpty(message = "简介不能为空") 
 | 
    private String description; 
 | 
  
 | 
    @Schema(description = "头像") 
 | 
    private String avatar; 
 | 
  
 | 
} 
 |