| | |
| | | return new ResultUtil<CustomerReceive>().setErrorMsg("操作失败"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/update", method = RequestMethod.POST) |
| | | @ApiOperation(value = "修改头像") |
| | | public Result<CustomerReceive> update(String id,String imgUrl) { |
| | | CustomerReceive customerReceive = iCustomerReceiveService.getById(id); |
| | | customerReceive.setImg(imgUrl); |
| | | if (iCustomerReceiveService.saveOrUpdate(customerReceive)) { |
| | | return new ResultUtil<CustomerReceive>().setData(customerReceive); |
| | | } |
| | | return new ResultUtil<CustomerReceive>().setErrorMsg("操作失败"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/delByIds", method = RequestMethod.POST) |
| | | @ApiOperation(value = "批量通过id删除") |
| | | public Result<Object> delAllByIds(@RequestParam String[] ids) { |