1.代客下单 会员点单 取消点单

This commit is contained in:
2024-08-19 17:42:47 +08:00
parent 15de68b704
commit d6bbe73d58
12 changed files with 680 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
package cn.ysk.cashier.controller;
import cn.ysk.cashier.dto.ScanPayDTO;
import cn.ysk.cashier.service.TbPayService;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/pay")
public class TbPayController {
private final TbPayService payService;
public TbPayController(TbPayService payService) {
this.payService = payService;
}
@PostMapping("/scanPay")
public ResponseEntity<?> scanPay(
@RequestBody @Validated ScanPayDTO scanPayDTO
) {
payService.scanPay(scanPayDTO);
return null;
}
}