| | |
| | | */ |
| | | @Log(title = "客户档案", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addCustomer") |
| | | public R add(@RequestBody Customer customer) { |
| | | public R add(@RequestBody CustomerDto customer) { |
| | | return R.ok(customerService.insertCustomer(customer)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @Log(title = "客户档案", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updateCustomer") |
| | | public R edit(@RequestBody Customer customer) { |
| | | public R edit(@RequestBody CustomerDto customer) { |
| | | return R.ok(customerService.updateCustomer(customer)); |
| | | } |
| | | |
| | |
| | | * 私海客户流回公海 |
| | | */ |
| | | @Log(title = "客户档案", businessType = BusinessType.OTHER) |
| | | @PostMapping("/back") |
| | | public R back(Long id) { |
| | | @PostMapping("/back/{id}") |
| | | public R back(@PathVariable("id") Long id) { |
| | | return R.ok(customerService.back(id)); |
| | | } |
| | | } |