From 7fbdfec3962a6bf89fe5ee00d840c133c3b08088 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 11 Feb 2023 23:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A5=E5=85=A5=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E7=9A=84=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/demo/vo/PayDemoOrderRespVO.java | 6 + yudao-ui-admin/src/api/pay/demo.js | 27 +++ yudao-ui-admin/src/views/pay/demo/index.vue | 202 ++++++++++++++++++ 3 files changed, 235 insertions(+) create mode 100644 yudao-ui-admin/src/api/pay/demo.js create mode 100644 yudao-ui-admin/src/views/pay/demo/index.vue diff --git a/yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/demo/vo/PayDemoOrderRespVO.java b/yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/demo/vo/PayDemoOrderRespVO.java index 212024fa0..04f2a6636 100644 --- a/yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/demo/vo/PayDemoOrderRespVO.java +++ b/yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/demo/vo/PayDemoOrderRespVO.java @@ -12,6 +12,9 @@ import java.time.LocalDateTime; @Data public class PayDemoOrderRespVO { + @Schema(description = "订单编号", required = true, example = "1024") + private Long id; + @Schema(description = "用户编号", required = true, example = "23199") private Long userId; @@ -39,4 +42,7 @@ public class PayDemoOrderRespVO { @Schema(description = "退款时间") private LocalDateTime refundTime; + @Schema(description = "创建时间", required = true) + private LocalDateTime createTime; + } diff --git a/yudao-ui-admin/src/api/pay/demo.js b/yudao-ui-admin/src/api/pay/demo.js new file mode 100644 index 000000000..f15dcf427 --- /dev/null +++ b/yudao-ui-admin/src/api/pay/demo.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +// 创建示例订单 +export function createDemoOrder(data) { + return request({ + url: '/pay/demo-order/create', + method: 'post', + data: data + }) +} + +// 获得示例订单 +export function getDemoOrder(id) { + return request({ + url: '/pay/demo-order/get?id=' + id, + method: 'get' + }) +} + +// 获得示例订单分页 +export function getDemoOrderPage(query) { + return request({ + url: '/pay/demo-order/page', + method: 'get', + params: query + }) +} diff --git a/yudao-ui-admin/src/views/pay/demo/index.vue b/yudao-ui-admin/src/views/pay/demo/index.vue new file mode 100644 index 000000000..e84816e67 --- /dev/null +++ b/yudao-ui-admin/src/views/pay/demo/index.vue @@ -0,0 +1,202 @@ + + +