| | |
| | | private AddrService addrService; |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "查询我的地址列表", notes = "小程序端") |
| | | @ApiOperation(value = "查询我的地址列表", notes = "小程序端,支持按地址/名称/手机号模糊搜索") |
| | | @GetMapping("/list") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "keyword", value = "搜索关键词(地址/名称/手机号)"), |
| | | }) |
| | | public ApiResponse<List<Addr>> list() { |
| | | return ApiResponse.success("查询成功", addrService.findListWithArea(getMemberId())); |
| | | public ApiResponse<List<Addr>> list(@RequestParam(required = false) String keyword) { |
| | | return ApiResponse.success("查询成功", addrService.findListWithArea(getMemberId(), keyword)); |
| | | } |
| | | |
| | | @LoginRequired |