|
|
@@ -3,16 +3,16 @@ package com.xingxi.api.service.impl;
|
|
|
import cn.binarywang.wx.miniapp.api.WxMaService;
|
|
|
import cn.binarywang.wx.miniapp.api.WxMaUserService;
|
|
|
import cn.binarywang.wx.miniapp.bean.WxMaUserInfo;
|
|
|
+import com.xingxi.api.model.*;
|
|
|
+import com.xingxi.business.UserAddress.domain.UserAddress;
|
|
|
+import com.xingxi.business.UserAddress.mapper.UserAddressMapper;
|
|
|
import com.xingxi.common.aliyun.oss.AliyunOSSClient;
|
|
|
import com.xingxi.common.core.domain.entity.SysUser;
|
|
|
+import com.xingxi.common.enums.EDelFlag;
|
|
|
import com.xingxi.common.utils.spring.SpringUtils;
|
|
|
import com.xingxi.common.utils.uuid.IdUtils;
|
|
|
import com.xingxi.api.common.UserContext;
|
|
|
import com.xingxi.api.data.domain.UserProfileDTO;
|
|
|
-import com.xingxi.api.model.UserProfileRequest;
|
|
|
-import com.xingxi.api.model.UserProfileResponse;
|
|
|
-import com.xingxi.api.model.UserProfileUpdateRequest;
|
|
|
-import com.xingxi.api.model.UserProfileUpdateResponse;
|
|
|
import com.xingxi.api.service.UserProfileServiceI;
|
|
|
import com.xingxi.system.mapper.SysUserMapper;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
@@ -27,12 +27,14 @@ import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.io.ByteArrayInputStream;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Slf4j
|
|
|
@RequiredArgsConstructor
|
|
|
@Service
|
|
|
@Validated
|
|
|
class UserProfileServiceImpl implements UserProfileServiceI {
|
|
|
+ private final UserAddressMapper userAddressMapper;
|
|
|
@NotBlank
|
|
|
@Value("${aliyun.oss.customDomain}")
|
|
|
private String customDomain;
|
|
|
@@ -189,4 +191,18 @@ class UserProfileServiceImpl implements UserProfileServiceI {
|
|
|
|
|
|
return new UserProfileResponse(userProfileDTO);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public UserAddressListResponse getUserAddressList(UserContext userContext, UserAddressRequest request) {
|
|
|
+
|
|
|
+ UserAddress condAddress = new UserAddress();
|
|
|
+ condAddress.setUserId(userContext.getCurrentUser().getUserId());
|
|
|
+ condAddress.setUserAddressId(request.getUserAddressId());
|
|
|
+ condAddress.setDelFlag(EDelFlag.NO.getVal());
|
|
|
+
|
|
|
+ List<UserAddress> userAddressList = userAddressMapper.selectUserAddressList(condAddress);
|
|
|
+
|
|
|
+ return new UserAddressListResponse(userAddressList);
|
|
|
+ }
|
|
|
+
|
|
|
}
|