package com.upyuns.platform.rs.universal.controller;

import com.alibaba.fastjson.JSONObject;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.github.wxiaoqi.security.common.util.process.ResultCode;
import com.github.wxiaoqi.security.common.util.result.JsonResultUtil;
import com.upyuns.platform.rs.universal.biz.OrderRefundBiz;
import com.upyuns.platform.rs.universal.entity.OrderRefund;
import com.upyuns.platform.rs.universal.vo.OrderRefundVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("refund")
public class OrderRefundController extends BaseController<OrderRefundBiz,OrderRefund> {

    @GetMapping(value = "/app/unauth/tradRefund")
    @ApiOperation("预授权转支付接口")
    public ObjectRestResponse tradRefund(String tradNo, Integer refundAmount, String refundReason, String outRequestNo) {
        return baseBiz.tradeRefund(tradNo, refundAmount, refundReason, outRequestNo);
    }

}