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;
    }

}
