feat():补齐订单客户相关API接口

master
LQS 2024-08-09 01:33:43 +08:00
parent b56a01e59b
commit 8b9dc7e82c
1 changed files with 13 additions and 1 deletions

View File

@ -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