Compare commits

..

No commits in common. "849ae8593cff12b6c02d04895e2edd3934cc55f8" and "5b33b5fbd22cf8ca3c75d02cbfb757b67849e45e" have entirely different histories.

1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package com.changhu.module.miniProgram.pojo.params;
import com.changhu.common.db.enums.Sex; import com.changhu.common.db.enums.Sex;
import com.changhu.common.validator.annotation.IdCard; import com.changhu.common.validator.annotation.IdCard;
import com.changhu.common.validator.annotation.IsMobile;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.NotNull;
@ -33,6 +34,8 @@ public class SecurityUserSaveOrUpdateParams {
@Schema(description = "名称") @Schema(description = "名称")
private String name; private String name;
@NotBlank(message = "手机号不能为空")
@IsMobile
@Schema(description = "手机号") @Schema(description = "手机号")
private String telephone; private String telephone;