<?php

use App\Http\Controllers\Goods\GoodsSkusController;
use App\Http\Controllers\Goods\GoodsController;
use App\Http\Controllers\Shop\ShopsController;
use App\Http\Controllers\Business\BusinessOrderController;
use App\Http\Controllers\Business\BusinessGoodsSkusController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
//    header('Location: ' . url()->current() . "/dist");
    return "hello";
});

Route::get('goods_skus/export', [GoodsSkusController::class, 'export'])->name('goods_skus.export');
Route::get('plat_orders/export', [BusinessOrderController::class, 'exportOrderBlank'])->name('plat.orders.export');
Route::get('today_price/export', [BusinessGoodsSkusController::class, 'exportTodayPrice'])->name('plat.today_price.export');

Route::get('goods/import/template', [GoodsController::class, 'download'])->name('download.goods_import.template');

Route::get('callback', [ShopsController::class, 'authBind'])->name('shop.auth_bind.callback');

Route::get('pdd/ship', [ShopsController::class, 'pddPrintAuth'])->name('shop.pdd_print.callback');
