| | |
| | | package cn.iocoder.yudao.module.member.controller.app.user.vo; |
| | | |
| | | import cn.iocoder.yudao.framework.common.validation.InEnum; |
| | | import cn.iocoder.yudao.module.system.enums.common.SexEnum; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.Email; |
| | | import jakarta.validation.constraints.Size; |
| | | import lombok.Data; |
| | | import org.hibernate.validator.constraints.URL; |
| | | |
| | |
| | | @URL(message = "头像必须是 URL 格式") |
| | | private String avatar; |
| | | |
| | | @Schema(description = "邮箱", example = "member@iocoder.cn") |
| | | @Email(message = "邮箱格式不正确") |
| | | @Size(max = 50, message = "邮箱长度不能超过 50 个字符") |
| | | private String email; |
| | | |
| | | @Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | private Integer sex; |
| | | |