test_lgq/niucloud/app/adminapi/route/order.php
2024-01-24 17:36:08 +08:00

45 lines
1.8 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
use app\adminapi\middleware\AdminCheckRole;
use app\adminapi\middleware\AdminCheckToken;
use app\adminapi\middleware\AdminLog;
use think\facade\Route;
/**
* 订单相关路由
*/
Route::group('order', function () {
/***************************************************** 充值订单 *************************************************/
//订单列表
Route::get('recharge', 'order.Recharge/lists');
//订单详情
Route::get('recharge/:order_id', 'order.Recharge/detail');
//订单状态
Route::get('recharge/status', 'order.Recharge/status');
//订单统计
Route::get('recharge/stat', 'order.Recharge/stat');
// 订单发起退款
Route::put('recharge/refund/:order_id', 'order.Recharge/refund');
//退款订单列表
Route::get('recharge/refund', 'order.Recharge/refundLists');
//退款订单详情
Route::get('recharge/refund/:refund_id', 'order.Recharge/refundDetail');
//退款订单状态
Route::get('recharge/refund/status', 'order.Recharge/refundStatus');
//退款订单统计
Route::get('recharge/refund/stat', 'order.Recharge/refundStat');
})->middleware([
AdminCheckToken::class,
AdminCheckRole::class,
AdminLog::class
]);