1.代客下单 会员点单 取消点单
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user