package cn.iocoder.yudao.module.crm.controller.admin.customer.vo.address; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import lombok.Data; /** * 管理后台 - 客户收货地址 创建/修改 Request VO * * @author 超级管理员 */ @Schema(description = "管理后台 - 客户收货地址 Request VO") @Data public class CrmCustomerAddressSaveReqVO { @Schema(description = "编号", example = "1024") private Long id; @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") @NotNull(message = "客户编号不能为空") private Long customerId; @Schema(description = "收货人姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三") @NotBlank(message = "收货人姓名不能为空") @Size(max = 64, message = "收货人姓名不能超过 64 个字符") private String receiverName; @Schema(description = "收货人手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13800138000") @NotBlank(message = "收货人手机号不能为空") @Size(max = 32, message = "收货人手机号不能超过 32 个字符") private String receiverMobile; @Schema(description = "所在地编号", example = "110000") private Integer areaId; @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "北京市朝阳区某某路 1 号") @NotBlank(message = "详细地址不能为空") @Size(max = 255, message = "详细地址不能超过 255 个字符") private String detailAddress; @Schema(description = "是否默认收货地址", example = "true") private Boolean defaultFlag; @Schema(description = "备注", example = "工作日送货") @Size(max = 500, message = "备注不能超过 500 个字符") private String remark; }