@Test public void testQueryAddress() throws Exception { }
@ApiOperation("查看收货地址信息") @RequestMapping(value = "/api/v1/user/address/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryAddress() { List<Map<String, Object>> mapList = addressService.selectByAccountId(getUserId()); return success(mapList); }
DeliveryAddressController extends BaseController { @ApiOperation("查看收货地址信息") @RequestMapping(value = "/api/v1/user/address/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryAddress() { List<Map<String, Object>> mapList = addressService.selectByAccountId(getUserId()); return success(mapList); } }
DeliveryAddressController extends BaseController { @ApiOperation("查看收货地址信息") @RequestMapping(value = "/api/v1/user/address/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryAddress() { List<Map<String, Object>> mapList = addressService.selectByAccountId(getUserId()); return success(mapList); }  }
DeliveryAddressController extends BaseController { @ApiOperation("查看收货地址信息") @RequestMapping(value = "/api/v1/user/address/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryAddress() { List<Map<String, Object>> mapList = addressService.selectByAccountId(getUserId()); return success(mapList); }  @RequestMapping(value = "/api/v1/user/address/add", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject addAddress(@RequestBody DeliveryAddress address); @RequestMapping(value = "/api/v1/user/address/del", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject deleteAddress(@RequestParam("addressId") Long addressId); @ApiOperation("修改收货地址（tip；未使用！）") @RequestMapping(value = "/api/v1/user/address/up", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject updateAddress(@RequestBody DeliveryAddress address); @ApiOperation("查看收货地址信息") @RequestMapping(value = "/api/v1/user/address/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryAddress(); }
DeliveryAddressController extends BaseController { @ApiOperation("查看收货地址信息") @RequestMapping(value = "/api/v1/user/address/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryAddress() { List<Map<String, Object>> mapList = addressService.selectByAccountId(getUserId()); return success(mapList); }  @RequestMapping(value = "/api/v1/user/address/add", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject addAddress(@RequestBody DeliveryAddress address); @RequestMapping(value = "/api/v1/user/address/del", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject deleteAddress(@RequestParam("addressId") Long addressId); @ApiOperation("修改收货地址（tip；未使用！）") @RequestMapping(value = "/api/v1/user/address/up", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject updateAddress(@RequestBody DeliveryAddress address); @ApiOperation("查看收货地址信息") @RequestMapping(value = "/api/v1/user/address/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryAddress();  }