支付宝退款
This commit is contained in:
@@ -3,18 +3,17 @@ package com.peanut.modules.pay.alipay.controller;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.pay.alipay.dto.AlipayDTO;
|
||||
import com.peanut.modules.pay.alipay.dto.ReFundDTO;
|
||||
import com.peanut.modules.pay.alipay.service.AliPayService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 支付宝支付控制层
|
||||
*/
|
||||
@@ -47,4 +46,14 @@ public class AliPayController {
|
||||
return R.ok().put("aliNotify",aliNotify);
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付宝退款
|
||||
*/
|
||||
@RequestMapping("/refund")
|
||||
public R refund(@RequestBody ReFundDTO reFundDTO) {
|
||||
String refund = aliPayService.refund(reFundDTO);
|
||||
return R.ok().put("msg",refund);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user