|
@@ -34,7 +34,7 @@ public class UmsMemberReceiveAddressController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("删除收货地址")
|
|
|
- @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "/delete/{id}", method = RequestMethod.DELETE)
|
|
|
@ResponseBody
|
|
|
public CommonResult delete(@PathVariable Long id) {
|
|
|
int count = memberReceiveAddressService.delete(id);
|
|
@@ -45,7 +45,7 @@ public class UmsMemberReceiveAddressController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("修改收货地址")
|
|
|
- @RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "/update/{id}", method = RequestMethod.PUT)
|
|
|
@ResponseBody
|
|
|
public CommonResult update(@PathVariable Long id, @RequestBody UmsMemberReceiveAddress address) {
|
|
|
int count = memberReceiveAddressService.update(id, address);
|