package com.seer.teach.mall.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

/**
 * <p>
 * 
 * </p>
 *
 * @author Captain
 * @since 2025-06-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "新增收货地址请求参数")
public class AddressSaveReq {

    @Schema(description = "收货人姓名")
    @NotBlank(message = "收货人姓名不能为空")
    private String userName;

    @Schema(description = "手机")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String telNumber;

    @Schema(description = "省份")
    @NotBlank(message = "省份不能为空")
    private String provinceName;

    @Schema(description = "市")
    @NotBlank(message = "市不能为空")
    private String cityName;

    @Schema(description = "区")
    @NotBlank(message = "区不能为空")
    private String countyName;

    @Schema(description = "是否默认(1是，0否)")
    private Integer isDefault;

    @Schema(description = "详细收货地址信息")
    @NotBlank(message = "详细收货地址信息不能为空")
    private String detailInfo;

    @Schema(description = "标签")
    private String label;

}
