| | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获得用户收件地址列表") |
| | | @Parameter(name = "userId", description = "用户编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('member:user:query')") |
| | | public CommonResult<List<AddressRespVO>> getAddressList(@RequestParam("userId") Long userId) { |
| | | List<MemberAddressDO> list = addressService.getAddressList(userId); |
| | | return success(AddressConvert.INSTANCE.convertList2(list)); |