package com.ruoyi.web.app;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.bst.pay.service.PayService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.enums.LogBizType;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/app/pay")
public class AppPayController extends BaseController {

    @Autowired
    private PayService payService;

    @ApiOperation("刷新支付结果")
    @PutMapping("/refreshPayResult")
    @Log(title = "刷新支付结果", businessType = BusinessType.OTHER, bizIdName = "arg0", bizType = LogBizType.PAY)
    public AjaxResult refreshPayResult(String no) {
        payService.refreshPayResult(no);
        return success();
    }
    
}
