feat():补齐订单客户相关API接口
parent
b56a01e59b
commit
8b9dc7e82c
|
@ -89,11 +89,23 @@ public class OrderPayCustomerController {
|
|||
public Result<String> update(
|
||||
@Schema(title = "客户ID",type = "Long",defaultValue = "1",description = "修改客户信息需要依据的唯一条件")
|
||||
@PathVariable("orderCustomerId") Long orderCustomerId,
|
||||
@Validated @RequestBody OrderCustomerUpdReq orderCustomerUpdReq){
|
||||
@RequestBody @Validated OrderCustomerUpdReq orderCustomerUpdReq){
|
||||
orderPayCustomerService.updateById(OrderPayCustomer.updBuild(orderCustomerUpdReq,() -> orderCustomerId));
|
||||
return Result.success(null,"操作成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户
|
||||
* @param orderCustomerId 删除客户请求信息
|
||||
* @return 删除结果
|
||||
*/
|
||||
@PutMapping("/{orderCustomerId}")
|
||||
@Operation(summary = "客户信息删除",description = "通过ID删除客户信息")
|
||||
public Result<String> delete(@PathVariable("orderCustomerId") Long orderCustomerId){
|
||||
orderPayCustomerService.removeById(orderCustomerId);
|
||||
return Result.success(null,"操作成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过ID获取客户
|
||||
* @param orderCustomerId ID
|
||||
|
|
Loading…
Reference in New Issue