| | |
| | | package cn.iocoder.yudao.module.wxcp.controller.admin.activity.vo; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import jakarta.validation.constraints.Pattern; |
| | | import jakarta.validation.constraints.Size; |
| | |
| | | @NotNull(message = "活动编号不能为空") |
| | | private Long activityId; |
| | | |
| | | @Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "刘意") |
| | | @NotEmpty(message = "姓名不能为空") |
| | | @Schema(description = "姓名(选填)", example = "刘意") |
| | | @Size(max = 64, message = "姓名长度不能超过 64 个字符") |
| | | private String name; |
| | | |
| | | @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13800138000") |
| | | @NotEmpty(message = "手机号不能为空") |
| | | @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确") |
| | | @Schema(description = "手机号(选填,填了才校验格式)", example = "13800138000") |
| | | @Pattern(regexp = "^$|^1[3-9]\\d{9}$", message = "手机号格式不正确,请填写 11 位手机号或留空") |
| | | private String mobile; |
| | | |
| | | @Schema(description = "企业微信成员账号;从企业微信内打开时由前端自动带上,普通浏览器报名可不传") |