申请退款dto

This commit is contained in:
2023-07-27 16:44:18 +08:00
parent 8cbaff5105
commit 36aa58bd6b
6 changed files with 26 additions and 23 deletions

View File

@@ -18,7 +18,7 @@ import com.jsowell.pile.dto.WeixinPayDTO;
import com.jsowell.pile.vo.uniapp.PayModeVO;
import com.jsowell.service.MemberService;
import com.jsowell.service.OrderService;
import com.jsowell.pile.dto.WeChatRefundDTO;
import com.jsowell.pile.dto.ApplyRefundDTO;
import com.jsowell.wxpay.response.WechatPayNotifyParameter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
@@ -239,7 +239,7 @@ public class PayController extends BaseController {
* https://api.jsowellcloud.com/uniapp/pay/refund
*/
@PostMapping("/refund")
public RestApiResponse<?> weChatRefund(HttpServletRequest request, @RequestBody WeChatRefundDTO dto) {
public RestApiResponse<?> weChatRefund(HttpServletRequest request, @RequestBody ApplyRefundDTO dto) {
RestApiResponse<?> response;
try {
if (dto.getRefundAmount() == null) {
@@ -269,7 +269,7 @@ public class PayController extends BaseController {
* https://api.jsowellcloud.com/uniapp/pay/adapayRefund
*/
@PostMapping("/adapayRefund")
public RestApiResponse<?> adapayRefund(HttpServletRequest request, @RequestBody WeChatRefundDTO dto) {
public RestApiResponse<?> adapayRefund(HttpServletRequest request, @RequestBody ApplyRefundDTO dto) {
RestApiResponse<?> response;
try {
if (dto.getRefundAmount() == null) {