package com.kxs.user.api.dto.kxsapp.userAddress;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;


/**
 * 设置-收货地址-新增/修改-dto
 *
 * @author 系统
 * @date 2024-01-03 09:39:58
 */
@Data
public class UserAddressDTO {

    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    private Integer id;


    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    @NotBlank(message = "详细地址不能为空")
    private String address;


    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    @NotBlank(message = "联系电话不能为空")
    private String phone;


    /**
     * 收货人
     */
    @Schema(description = "收货人")
    @NotBlank(message = "收货人不能为空")
    private String consignee;


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


    /**
     * 城市
     */
    @Schema(description = "城市")
    @NotBlank(message = "城市不能为空")
    private String city;


    /**
     * 区县
     */
    @Schema(description = "区县")
    @NotBlank(message = "区县不能为空")
    private String area;


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




}
