package com.sandu.ximon.admin.controller;
|
|
import com.sandu.common.domain.ResponseVO;
|
import com.sandu.common.util.ResponseUtil;
|
import com.sandu.ximon.admin.service.C3mOrderService;
|
import lombok.AllArgsConstructor;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.Map;
|
|
/**
|
* @Author liuhaonan
|
* @Date 2022/3/22 14:10
|
* @Version 1.0
|
*/
|
@RestController
|
@AllArgsConstructor
|
@RequestMapping("/v1/c3mOrder")
|
public class C3mOrderController {
|
|
private final C3mOrderService c3mOrderService;
|
|
|
/**
|
* 退款
|
*
|
* @param params
|
* @return
|
*/
|
@PostMapping("/refond")
|
public ResponseVO<Object> refond(@RequestBody Map params) {
|
// c3mOrderService.orderRefund( (String)params.get("outTradeNo"),
|
// (Double)params.get("refundAmount"));
|
return ResponseUtil.success(c3mOrderService.orderRefund((String) params.get("outTradeNo"),
|
(Double) params.get("refundAmount")));
|
|
}
|
}
|