package com.sqx.modules.pay.controller.app;

import com.sqx.common.utils.Result;
import com.sqx.modules.app.annotation.Login;
import com.sqx.modules.pay.service.PayDetailsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.java.Log;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(value = "支付订单", tags = {"支付订单"})
@RequestMapping("/app/payDetails")
public class PayDetailsController {

    @Autowired
    private PayDetailsService payDetailsService;

    @GetMapping("/checkOrderStatus")
    @ApiOperation("查询充值分类")
    @Login
    public Result checkOrderStatus(String orderId){
        return payDetailsService.checkOrderStatus(orderId);
    }
}
