- 新增后台转账账单列表接口 - 实现基础的账单数据返回逻辑 - 配置认证中间件确保接口安全 - 设置路由前缀为 /admin/wechatpay
@@ -0,0 +1,15 @@
+<?php
+declare(strict_types=1);
+
+use think\facade\Route;
+use SixShop\WechatPay\Controller\TransferBillController;
+// API路由
+// 路由前缀: /admin/wechatpay
+//
+// 如果需要登录请添加认证中间件auth
+// ->middleware(['auth'])
+Route::resource('transfer_bill', TransferBillController::class)
+ ->only(['index'])
+ ->middleware(['auth']);
@@ -0,0 +1,8 @@
+// 路由前缀: /api/wechatpay
@@ -0,0 +1,16 @@
+namespace SixShop\WechatPay\Controller;
+class TransferBillController
+{
+ public function index()
+ {
+ // todo
+ return json([
+ 'code' => 0,
+ 'msg' => 'success',
+ 'data' => [],
+ ]);
+ }
+}