|
@@ -3,13 +3,11 @@ package cn.iocoder.yudao.module.system.controller.admin.tenant.vo.tenant;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import jakarta.validation.constraints.*;
|
|
|
import lombok.Data;
|
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
|
|
|
-import jakarta.validation.constraints.AssertTrue;
|
|
|
-import jakarta.validation.constraints.NotNull;
|
|
|
-import jakarta.validation.constraints.Pattern;
|
|
|
-import jakarta.validation.constraints.Size;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
|
@Schema(description = "管理后台 - 租户创建/修改 Request VO")
|
|
@@ -67,4 +65,36 @@ public class TenantSaveReqVO {
|
|
|
|| (ObjectUtil.isAllNotEmpty(username, password)); // 新增时,必须都传递 username、password
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @Schema(description = "法人身份证", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
+ @NotEmpty(message = "法人身份证不能为空")
|
|
|
+ private String idCard;
|
|
|
+
|
|
|
+ @Schema(description = "区域", example = "11311")
|
|
|
+ private Long areaId;
|
|
|
+
|
|
|
+ @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
+ @NotEmpty(message = "详细地址不能为空")
|
|
|
+ private String address;
|
|
|
+
|
|
|
+ @Schema(description = "面积", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
+ @NotNull(message = "面积不能为空")
|
|
|
+ private BigDecimal coveredArea;
|
|
|
+
|
|
|
+ @Schema(description = "房间数", requiredMode = Schema.RequiredMode.REQUIRED, example = "8361")
|
|
|
+ @NotNull(message = "房间数不能为空")
|
|
|
+ private Integer roomCount;
|
|
|
+
|
|
|
+ @Schema(description = "技师人数", requiredMode = Schema.RequiredMode.REQUIRED, example = "12904")
|
|
|
+ @NotNull(message = "技师人数不能为空")
|
|
|
+ private Integer technicianCount;
|
|
|
+
|
|
|
+ @Schema(description = "营业执照", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
+ @NotEmpty(message = "营业执照不能为空")
|
|
|
+ private String businessLicense;
|
|
|
+
|
|
|
+ @Schema(description = "开业时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
+ @NotNull(message = "开业时间不能为空")
|
|
|
+ private LocalDateTime openTime;
|
|
|
+
|
|
|
}
|