- 用户地址 添加 hasDefault
This commit is contained in:
@@ -13,7 +13,6 @@ import java.io.Serializable;
|
||||
@Accessors(chain = true)
|
||||
public class UserAddressBO implements Serializable {
|
||||
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@@ -38,5 +37,8 @@ public class UserAddressBO implements Serializable {
|
||||
* 收件详细地址
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 是否默认
|
||||
*/
|
||||
private Integer hasDefault;
|
||||
}
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
package cn.iocoder.mall.user.api.bo;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户地址 page
|
||||
*
|
||||
* @author Sin
|
||||
* @time 2019-04-06 13:56
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class UserAddressPageBO implements Serializable {
|
||||
|
||||
/**
|
||||
* 总量
|
||||
*/
|
||||
private Integer total;
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
private List<UserAddressBO> list;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package cn.iocoder.mall.user.api.constant;
|
||||
|
||||
/**
|
||||
* 用户地址 - 用户默认地址
|
||||
*
|
||||
* @author Sin
|
||||
* @time 2019-04-10 22:02
|
||||
*/
|
||||
public enum UserAddressHasDefaultEnum {
|
||||
|
||||
DEFAULT_ADDRESS_NO (1, "不是默认地址"),
|
||||
DEFAULT_ADDRESS_YES (2, "不是默认地址")
|
||||
;
|
||||
|
||||
private final int value;
|
||||
private final String name;
|
||||
|
||||
UserAddressHasDefaultEnum(int value, String name) {
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
@@ -35,5 +35,11 @@ public class UserAddressAddDTO implements Serializable {
|
||||
* 收件详细地址
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 是否默认
|
||||
*
|
||||
* - 1 不是
|
||||
* - 2 是
|
||||
*/
|
||||
private Integer hasDefault;
|
||||
}
|
||||
|
||||
@@ -39,5 +39,8 @@ public class UserAddressUpdateDTO implements Serializable {
|
||||
* 收件详细地址
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 是否默认地址
|
||||
*/
|
||||
private Integer hasDefault;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user