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 @@
+
+
+
+
+
+ 发起订单
+
+
+
+
+
+
+
+
+
+
+
+ ¥{{ (scope.row.price / 100.0).toFixed(2) }}
+
+
+
+
+ ¥{{ (scope.row.refundPrice / 100.0).toFixed(2) }}
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.payTime) }}
+
+
+
+
+ {{ parseTime(scope.row.refundTime) }}
+
+
+
+
+ 支付
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name}}
+ ¥{{ (item.price / 100.0).toFixed(2) }}
+
+
+
+
+
+
+
+
+
+