新增地址controller补充对service的调用
This commit is contained in:
parent
b1279ce060
commit
1a22ec11b6
|
|
@ -98,9 +98,9 @@ public class CustomerAddressController extends BaseController {
|
|||
*/
|
||||
@PostMapping("/insert")
|
||||
@ResponseBody
|
||||
AjaxResult insertCustomerAddress(CustomerAddress customerAddress){
|
||||
AjaxResult insertCustomerAddress(@RequestBody CustomerAddress customerAddress){
|
||||
try {
|
||||
|
||||
customerAddressService.insertCustomerAddress(customerAddress);
|
||||
return AjaxResult.success("操作成功");
|
||||
}catch (Exception e){
|
||||
return AjaxResult.error(ExceptionUtil.getExceptionMessage(e));
|
||||
|
|
@ -113,7 +113,7 @@ public class CustomerAddressController extends BaseController {
|
|||
*/
|
||||
@PostMapping("/update")
|
||||
@ResponseBody
|
||||
AjaxResult updateCustomerAddress(CustomerAddress customerAddress){
|
||||
AjaxResult updateCustomerAddress(@RequestBody CustomerAddress customerAddress){
|
||||
try {
|
||||
customerAddressService.updateCustomerAddress(customerAddress);
|
||||
return AjaxResult.success("操作成功");
|
||||
|
|
|
|||
Loading…
Reference in New Issue