|
@@ -33,7 +33,7 @@ public class AddressController {
|
|
|
@Operation(summary = "获得用户收件地址列表")
|
|
|
@Parameter(name = "userId", description = "用户编号", required = true)
|
|
|
@PreAuthorize("@ss.hasPermission('member:user:query')")
|
|
|
- public CommonResult<List<AddressRespVO>> getAddressList(@RequestParam("userId") Long userId,Integer addressType) {
|
|
|
+ public CommonResult<List<AddressRespVO>> getAddressList(@RequestParam("userId") Long userId,@RequestParam(defaultValue = "1")Integer addressType) {
|
|
|
List<MemberAddressDO> list = addressService.getAddressList(userId,addressType);
|
|
|
return success(AddressConvert.INSTANCE.convertList2(list));
|
|
|
}
|