diff --git a/user/user-rest/src/main/java/cn/iocoder/mall/user/rest/controller/user/UsersUserAddressController.java b/user/user-rest/src/main/java/cn/iocoder/mall/user/rest/controller/user/UsersUserAddressController.java index e4a7db9ad..690a164c2 100644 --- a/user/user-rest/src/main/java/cn/iocoder/mall/user/rest/controller/user/UsersUserAddressController.java +++ b/user/user-rest/src/main/java/cn/iocoder/mall/user/rest/controller/user/UsersUserAddressController.java @@ -52,7 +52,7 @@ public class UsersUserAddressController { @DeleteMapping("/{addressId}/remove") @ApiOperation("删除 - 根据id删除") - public CommonResult getDefaultAddress(@PathVariable("addressId") Integer addressId) { + public CommonResult getDefaultAddress(@PathVariable("addressId") Integer addressId) { Integer userId = UserSecurityContextHolder.getContext().getUserId(); userAddressService.removeAddress(userId, addressId); return CommonResult.success(null); @@ -60,7 +60,7 @@ public class UsersUserAddressController { @PostMapping("/add-address") @ApiOperation("添加地址") - public CommonResult addAddress(@RequestBody UserAddressAddRequest userAddressAddRequest) { + public CommonResult addAddress(@RequestBody UserAddressAddRequest userAddressAddRequest) { Integer userId = UserSecurityContextHolder.getContext().getUserId(); UserAddressAddDTO userAddressAddDTO = UserAddressConvert.INSTANCE.convert(userAddressAddRequest); userAddressAddDTO.setUserId(userId); @@ -70,7 +70,7 @@ public class UsersUserAddressController { @PutMapping("/update-address") @ApiOperation("更新地址") - public CommonResult updateAddress(@RequestBody UserAddressUpdateRequest userAddressAddRequest) { + public CommonResult updateAddress(@RequestBody UserAddressUpdateRequest userAddressAddRequest) { Integer userId = UserSecurityContextHolder.getContext().getUserId(); UserAddressUpdateDTO userAddressAddDTO = UserAddressConvert.INSTANCE.convert(userAddressAddRequest); userAddressAddDTO.setUserId(userId);