From bab85c9c497af4577bcd53a43345621ac8fdbfdb Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 13 Feb 2023 11:10:48 +0800
Subject: [PATCH] 小程序地址分成省市区三级加详细地址

---
 src/main/java/cc/mrbird/febs/mall/entity/MallAddressInfo.java |    6 +++++-
 src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java       |    8 ++++++++
 src/main/java/cc/mrbird/febs/mall/dto/AddressInfoDto.java     |    8 ++++++++
 3 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/dto/AddressInfoDto.java b/src/main/java/cc/mrbird/febs/mall/dto/AddressInfoDto.java
index 4299ea3..2c56c60 100644
--- a/src/main/java/cc/mrbird/febs/mall/dto/AddressInfoDto.java
+++ b/src/main/java/cc/mrbird/febs/mall/dto/AddressInfoDto.java
@@ -24,6 +24,14 @@
     @NotBlank(message = "参数不能为空")
     @ApiModelProperty(value = "手机号", example = "15773001234")
     private String phone;
+    //省
+    @NotBlank(message = "参数不能为空")
+    @ApiModelProperty(value = "省", example = "北京市朝阳区")
+    private String province;
+    //市
+    @NotBlank(message = "参数不能为空")
+    @ApiModelProperty(value = "市", example = "北京市朝阳区")
+    private String city;
 
     @NotBlank(message = "参数不能为空")
     @ApiModelProperty(value = "地区", example = "北京市朝阳区")
diff --git a/src/main/java/cc/mrbird/febs/mall/entity/MallAddressInfo.java b/src/main/java/cc/mrbird/febs/mall/entity/MallAddressInfo.java
index d952e7a..04e007c 100644
--- a/src/main/java/cc/mrbird/febs/mall/entity/MallAddressInfo.java
+++ b/src/main/java/cc/mrbird/febs/mall/entity/MallAddressInfo.java
@@ -19,7 +19,7 @@
     private Long memberId;
 
     /**
-     * 地区 省市区
+     * 地区
      */
     private String area;
 
@@ -44,5 +44,9 @@
     private Integer isDefault;
     public static final Integer IS_DEFAULT_Y = 1;
     public static final Integer IS_DEFAULT_N = 2;
+    //省
+    private String province;
+    //市
+    private String city;
 
 }
diff --git a/src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java b/src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java
index 284ae50..8af6e59 100644
--- a/src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java
+++ b/src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java
@@ -41,4 +41,12 @@
      */
     @ApiModelProperty(value = "纬度")
     private String latitude;
+    //省
+
+    @ApiModelProperty(value = "省")
+    private String province;
+    //市
+
+    @ApiModelProperty(value = "市")
+    private String city;
 }

--
Gitblit v1.9.1